
-- 6.4.2

-- 1、用户行为 数据采集
-- 2、数据库审计、建模
-- 3、权限审计 - 数据权限审计、自定义权限审计、角色权限审计
-- 4、模块市场 - 填报模块、往来单位模块
-- 5、代码生成器升级 - 本次升级会清空所有代码生成器的表
-- 6、平台框架依赖升级 - mybatis plus 升级

-- 20200327
CREATE TABLE `sys_log_sql` (
  `id` bigint(20) NOT NULL DEFAULT '1' COMMENT '主键',
  `sql_str` text COMMENT 'sql 字符串',
  `execution_status` tinyint(1) DEFAULT '1' COMMENT '执行状态',
  `execute_rows` int(11) DEFAULT '0' COMMENT '执行影响行数',
  `execute_duration` int(11) DEFAULT '0' COMMENT '执行时长',
  `slow_duration` int(11) DEFAULT '0' COMMENT '最慢时长',
  `transactional_rows` int(11) DEFAULT '0' COMMENT '事务影响行数',
  `error_rows` int(11) DEFAULT '0' COMMENT '错误行数',
  `update_rows` int(11) DEFAULT '0' COMMENT '更新行数',
  `read_rows` int(11) DEFAULT '0' COMMENT '读取行数',
  `max_concurrent` int(11) DEFAULT '0' COMMENT '最大并发数',
  `creator` varchar(64) DEFAULT NULL COMMENT '创建者',
  `create_date` datetime DEFAULT NULL COMMENT '创建时间',
  `updater` varchar(64) DEFAULT NULL COMMENT '更新者',
  `update_date` datetime DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='SQL执行监控日志表';

CREATE TABLE `sys_log_user_behavior` (
  `id` bigint(20) NOT NULL DEFAULT '1' COMMENT '主键',
  `user_name` varchar(64) NOT NULL COMMENT '操作用户编码',
  `real_name` varchar(128) DEFAULT NULL COMMENT '操作用户名',
  `ip` varchar(32) DEFAULT NULL COMMENT '操作IP',
  `user_agent` varchar(512) DEFAULT NULL COMMENT '用户代理',
  `client_type` varchar(100) DEFAULT NULL COMMENT '客户端类型',
  `opera_type` tinyint(2) DEFAULT NULL COMMENT '操作类型 0-菜单 1-按钮 2-动作',
  `opera_url` varchar(512) DEFAULT NULL COMMENT '页面所在的url',
  `opera_action` varchar(64) DEFAULT NULL COMMENT '页面操作动作',
  `opera_desc` varchar(64) DEFAULT NULL COMMENT '页面操作动作描述',
  `creator` varchar(64) DEFAULT NULL COMMENT '创建者',
  `create_date` datetime DEFAULT NULL COMMENT '创建时间',
  `updater` varchar(64) DEFAULT NULL COMMENT '更新者',
  `update_date` datetime DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用户行为日志分析表';

CREATE TABLE `dpd_column` (
  `id` bigint(20) NOT NULL,
  `column_name` varchar(64) DEFAULT NULL COMMENT '字段名称',
  `column_comment` varchar(64) DEFAULT NULL COMMENT '字段注释',
  `column_type` varchar(64) DEFAULT NULL COMMENT '字段类型',
  `column_type_id` bigint(20) DEFAULT NULL COMMENT '字段类型外键ID',
  `column_type_biz` varchar(64) DEFAULT NULL COMMENT '业务字段类型',
  `limit_flag` tinyint(1) DEFAULT NULL COMMENT '限定标识  1 可以修改',
  `is_nullable` tinyint(1) DEFAULT '0' COMMENT '是否为空',
  `column_default` varchar(64) DEFAULT NULL COMMENT '默认值',
  `max_length` int(11) unsigned DEFAULT NULL COMMENT '长度/精度',
  `numeric_scale` int(10) unsigned DEFAULT NULL COMMENT '小数位数',
  `db_type` varchar(20) DEFAULT NULL COMMENT '数据库类型',
  `sort` int(11) DEFAULT NULL COMMENT '排序',
  `remark` varchar(256) DEFAULT NULL COMMENT '备注说明',
  `creator` varchar(64) DEFAULT NULL COMMENT '创建者',
  `create_date` datetime DEFAULT NULL COMMENT '创建时间',
  `updater` varchar(64) DEFAULT NULL COMMENT '更新者',
  `update_date` datetime DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='字段库';

CREATE TABLE `dpd_column_type` (
  `id` bigint(20) NOT NULL,
  `column_type` varchar(64) DEFAULT NULL COMMENT '字段类型',
  `column_type_biz` varchar(64) DEFAULT NULL COMMENT '业务类型',
  `limit_flag` tinyint(1) DEFAULT NULL COMMENT '限定标识  1 可以修改',
  `max_length` int(11) unsigned DEFAULT NULL COMMENT '长度/精度',
  `numeric_scale` int(10) unsigned DEFAULT NULL COMMENT '小数位数',
  `db_type` varchar(20) DEFAULT NULL COMMENT '数据库类型',
  `sort` int(11) DEFAULT NULL,
  `remark` varchar(256) DEFAULT NULL COMMENT '备注',
  `creator` varchar(64) DEFAULT NULL COMMENT '创建者',
  `create_date` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '创建时间',
  `updater` varchar(64) DEFAULT NULL COMMENT '更新者',
  `update_date` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='字段类型';

CREATE TABLE `dpd_rule` (
  `id` bigint(20) NOT NULL COMMENT '主键',
  `rule_code` varchar(64) NOT NULL COMMENT '规则编号',
  `rule_name` varchar(128) NOT NULL COMMENT '规则名称',
  `rule_class` varchar(64) NOT NULL COMMENT '表分类',
  `db_type` varchar(64) NOT NULL COMMENT '数据库类型',
  `remark` varchar(256) DEFAULT NULL COMMENT '备注说明',
  `creator` varchar(64) DEFAULT NULL COMMENT '创建者',
  `create_date` datetime DEFAULT NULL COMMENT '创建时间',
  `updater` varchar(64) DEFAULT NULL COMMENT '更新者',
  `update_date` datetime DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`id`),
  UNIQUE KEY `idx_dpd_rule_1` (`rule_code`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='规则表';

CREATE TABLE `dpd_rule_columns` (
  `id` bigint(20) NOT NULL COMMENT '主键',
  `rule_id` bigint(20) NOT NULL COMMENT '规则表外键',
  `column_name` varchar(64) NOT NULL COMMENT '字段名称',
  `is_nullable` tinyint(1) DEFAULT NULL COMMENT '允许NULL',
  `column_default` varchar(64) DEFAULT NULL COMMENT '默认值',
  `column_type` varchar(64) NOT NULL COMMENT '字段类型',
  `max_length` int(11) unsigned DEFAULT NULL COMMENT '长度/精度',
  `numeric_scale` int(10) unsigned DEFAULT NULL COMMENT '小数位数',
  `column_key` varchar(3) DEFAULT NULL COMMENT 'KEY类型 PRI主键',
  `column_comment` varchar(128) DEFAULT NULL COMMENT '字段备注',
  `sort` int(11) DEFAULT NULL COMMENT '排序',
  `remark` varchar(256) DEFAULT NULL COMMENT '备注说明',
  `creator` varchar(64) DEFAULT NULL COMMENT '创建者',
  `create_date` datetime DEFAULT NULL COMMENT '创建时间',
  `updater` varchar(64) DEFAULT NULL COMMENT '更新者',
  `update_date` datetime DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`id`),
  UNIQUE KEY `idx_dpd_rule_columns_2` (`column_name`,`rule_id`) USING BTREE,
  KEY `idx_dpd_rule_columns_1` (`rule_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='规则字段';

CREATE TABLE `dpd_table` (
  `id` bigint(20) NOT NULL COMMENT '主键',
  `table_name` varchar(64) NOT NULL COMMENT '表名称',
  `table_comment` varchar(128) NOT NULL COMMENT '表备注',
  `is_update` tinyint(1) NOT NULL COMMENT '是否更新',
  `force_flag` tinyint(1) NOT NULL COMMENT '强制',
  `sync_flag` tinyint(1) DEFAULT NULL COMMENT '同步SQL标识',
  `rule_id` bigint(20) NOT NULL COMMENT '规则表外键',
  `rule_class` varchar(64) NOT NULL COMMENT '表分类-冗余',
  `db_type` varchar(64) NOT NULL COMMENT '数据库类型-冗余',
  `remark` varchar(256) DEFAULT NULL COMMENT '备注说明',
  `create_sql` text COMMENT '建表SQL',
  `creator` varchar(64) DEFAULT NULL COMMENT '创建者',
  `create_date` datetime DEFAULT NULL COMMENT '创建时间',
  `updater` varchar(64) DEFAULT NULL COMMENT '更新者',
  `update_date` datetime DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`id`),
  UNIQUE KEY `idx_dpd_table_1` (`table_name`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='新建表';

CREATE TABLE `dpd_table_columns` (
  `id` bigint(20) NOT NULL COMMENT '主键',
  `table_id` bigint(20) NOT NULL COMMENT '表外键',
  `column_name` varchar(64) NOT NULL COMMENT '字段名称',
  `is_nullable` tinyint(1) DEFAULT NULL COMMENT '允许NULL',
  `column_default` varchar(64) DEFAULT NULL COMMENT '默认值',
  `column_type` varchar(64) NOT NULL COMMENT '字段类型',
  `column_type_id` bigint(20) DEFAULT NULL COMMENT '字段类型外键ID',
  `column_type_biz` varchar(64) DEFAULT NULL COMMENT '业务字段类型',
  `limit_flag` tinyint(1) DEFAULT NULL COMMENT '是否限定1限定',
  `max_length` int(11) unsigned DEFAULT NULL COMMENT '长度/精度',
  `numeric_scale` int(10) unsigned DEFAULT NULL COMMENT '小数位数',
  `column_key` varchar(3) DEFAULT NULL COMMENT 'KEY类型 PRI主键',
  `column_comment` varchar(128) DEFAULT NULL COMMENT '字段备注',
  `sort` int(10) DEFAULT NULL COMMENT '排序',
  `remark` varchar(256) DEFAULT NULL COMMENT '备注说明',
  `creator` varchar(64) DEFAULT NULL COMMENT '创建者',
  `create_date` datetime DEFAULT NULL COMMENT '创建时间',
  `updater` varchar(64) DEFAULT NULL COMMENT '更新者',
  `update_date` datetime DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`id`),
  UNIQUE KEY `idx_dpd_table_columns_2` (`column_name`,`table_id`) USING BTREE,
  KEY `idx_dpd_table_columns_1` (`table_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='新建表字段';

CREATE TABLE `drs_form_def` (
  `id` bigint(20) NOT NULL COMMENT '主键',
  `form_code` varchar(64) NOT NULL COMMENT '表单编码',
  `form_name` varchar(256) NOT NULL COMMENT '表单名称',
  `form_class` varchar(255) DEFAULT NULL COMMENT '表单分类',
  `form_type` varchar(64) NOT NULL COMMENT '表单类型 0-设计器生成 1-自定义代码',
  `form_content` text NOT NULL COMMENT '表单内容',
  `form_action` varchar(255) DEFAULT NULL COMMENT '表单动作',
  `sort` varchar(255) DEFAULT NULL COMMENT '表单排序',
  `remote_func` text COMMENT '表单远程方法',
  `model_flag` tinyint(1) DEFAULT '0' COMMENT '是否建模',
  `model_code` varchar(255) DEFAULT NULL COMMENT '数据库建模编码 数据库表名',
  `model_id` bigint(20) DEFAULT NULL COMMENT '数据模型表id',
  `status` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '表单状态',
  `remark` varchar(256) DEFAULT NULL COMMENT '备注说明',
  `creator` varchar(64) DEFAULT NULL COMMENT '创建者',
  `create_date` datetime DEFAULT NULL COMMENT '创建时间',
  `updater` varchar(64) DEFAULT NULL COMMENT '更新者',
  `update_date` datetime DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='数据填报-表单定义表';

CREATE TABLE `drs_form_inst` (
  `id` bigint(20) NOT NULL COMMENT '主键',
  `form_code` varchar(64) NOT NULL COMMENT '表单编码',
  `form_name` varchar(256) NOT NULL COMMENT '表单名称',
  `form_id` bigint(20) NOT NULL COMMENT '表单id',
  `model_code` varchar(255) NOT NULL COMMENT '数据库建模编码 数据库表名',
  `biz_id` bigint(20) NOT NULL COMMENT '业务数据id',
  `biz_desc` varchar(255) DEFAULT NULL COMMENT '业务数据描述',
  `biz_status` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '业务数据状态',
  `remark` varchar(256) DEFAULT NULL COMMENT '备注说明',
  `creator` varchar(64) DEFAULT NULL COMMENT '创建者',
  `create_date` datetime DEFAULT NULL COMMENT '创建时间',
  `updater` varchar(64) DEFAULT NULL COMMENT '更新者',
  `update_date` datetime DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='数据填报-表单定义表';

-- select * from sys_dict_type t where t.update_date > DATE(date_sub(now(),interval 12 day));
-- select * from sys_dict_data t where t.update_date > DATE(date_sub(now(),interval 12 day));

delete from sys_dict_type where id in (1239734011932405762,1240088204509687810,1240452071673180161,1240540249898115074);
delete from sys_dict_data where id in (1239487900249255937,1239734100381888513,1239734150449295362,1239734238336741377,1240088333417426946,1240088393823793154,1240452409931214850,1240452451744231425,1240540339786244097);

INSERT INTO sys_dict_type (id, dict_name, dict_type, is_sys, status, creator, create_date, updater, update_date, version, remark) VALUES(1239734011932405762, '数据库审计-表分类', 'DPD_RULE_CLASS', 0, 1, 'admin', '2020-03-17 10:03:16.000', 'admin', '2020-03-18 09:32:32.000', NULL, '');
INSERT INTO sys_dict_type (id, dict_name, dict_type, is_sys, status, creator, create_date, updater, update_date, version, remark) VALUES(1240088204509687810, '数据库类型', 'DATABASE_TYPE', 1, 1, 'admin', '2020-03-18 09:30:42.000', 'admin', '2020-03-18 09:32:39.000', NULL, '');
INSERT INTO sys_dict_type (id, dict_name, dict_type, is_sys, status, creator, create_date, updater, update_date, version, remark) VALUES(1240452071673180161, '用户类型', 'SYS_USER_TYPE', 1, 1, 'admin', '2020-03-19 09:36:35.000', 'admin', '2020-03-19 09:36:35.000', NULL, '');
INSERT INTO sys_dict_type (id, dict_name, dict_type, is_sys, status, creator, create_date, updater, update_date, version, remark) VALUES(1240540249898115074, '表单设计-表单分类', 'FORM_CLASS', 0, 1, 'admin', '2020-03-19 15:26:58.000', 'admin', '2020-03-19 15:26:58.000', NULL, '');

INSERT INTO sys_dict_data (id, pid, pids, sort, is_leaf, `level`, pnames, dict_label, dict_value, dict_type, remark, status, creator, create_date, updater, update_date, version) VALUES(1239487900249255937, 1186518011306156033, '', 2, 0, 0, NULL, '单体应用-树表操作(tab页)', 'crud-tree-tab', 'GEN_TEMP_TYPE', '', 1, 'admin', '2020-03-16 17:45:19.000', 'admin', '2020-03-16 17:47:03.000', 0);
INSERT INTO sys_dict_data (id, pid, pids, sort, is_leaf, `level`, pnames, dict_label, dict_value, dict_type, remark, status, creator, create_date, updater, update_date, version) VALUES(1239734100381888513, 1239734011932405762, '', 0, 0, 0, NULL, '单表', 'T01', 'DPD_RULE_CLASS', '', 1, 'admin', '2020-03-17 10:03:37.000', 'admin', '2020-03-17 10:03:37.000', 0);
INSERT INTO sys_dict_data (id, pid, pids, sort, is_leaf, `level`, pnames, dict_label, dict_value, dict_type, remark, status, creator, create_date, updater, update_date, version) VALUES(1239734150449295362, 1239734011932405762, '', 1, 0, 0, NULL, '树表', 'T02', 'DPD_RULE_CLASS', '', 1, 'admin', '2020-03-17 10:03:49.000', 'admin', '2020-03-17 10:03:49.000', 0);
INSERT INTO sys_dict_data (id, pid, pids, sort, is_leaf, `level`, pnames, dict_label, dict_value, dict_type, remark, status, creator, create_date, updater, update_date, version) VALUES(1239734238336741377, 1239734011932405762, '', 2, 0, 0, NULL, '主子表 - 子', 'T03', 'DPD_RULE_CLASS', '', 1, 'admin', '2020-03-17 10:04:10.000', 'admin', '2020-03-18 09:32:55.000', 0);
INSERT INTO sys_dict_data (id, pid, pids, sort, is_leaf, `level`, pnames, dict_label, dict_value, dict_type, remark, status, creator, create_date, updater, update_date, version) VALUES(1240088333417426946, 1240088204509687810, '', 0, 0, 0, NULL, 'MySQL', 'mysql', 'DATABASE_TYPE', '', 1, 'admin', '2020-03-18 09:31:13.000', 'admin', '2020-03-18 09:31:13.000', 0);
INSERT INTO sys_dict_data (id, pid, pids, sort, is_leaf, `level`, pnames, dict_label, dict_value, dict_type, remark, status, creator, create_date, updater, update_date, version) VALUES(1240088393823793154, 1240088204509687810, '', 1, 0, 0, NULL, 'Oracle', 'oracle', 'DATABASE_TYPE', '', 1, 'admin', '2020-03-18 09:31:27.000', 'admin', '2020-03-18 09:31:27.000', 0);
INSERT INTO sys_dict_data (id, pid, pids, sort, is_leaf, `level`, pnames, dict_label, dict_value, dict_type, remark, status, creator, create_date, updater, update_date, version) VALUES(1240452409931214850, 1240452071673180161, '', 1, 0, 0, NULL, '员工', '101', 'SYS_USER_TYPE', '', 1, 'admin', '2020-03-19 09:37:56.000', 'admin', '2020-03-19 10:02:09.000', 0);
INSERT INTO sys_dict_data (id, pid, pids, sort, is_leaf, `level`, pnames, dict_label, dict_value, dict_type, remark, status, creator, create_date, updater, update_date, version) VALUES(1240452451744231425, 1240452071673180161, '', 2, 0, 0, NULL, '往来单位', '102', 'SYS_USER_TYPE', '', 1, 'admin', '2020-03-19 09:38:06.000', 'admin', '2020-03-19 09:46:11.000', 0);
INSERT INTO sys_dict_data (id, pid, pids, sort, is_leaf, `level`, pnames, dict_label, dict_value, dict_type, remark, status, creator, create_date, updater, update_date, version) VALUES(1240540339786244097, 1240540249898115074, '', 0, 0, 0, NULL, '财务表单', '0', 'FORM_CLASS', '', 1, 'admin', '2020-03-19 15:27:20.000', 'admin', '2020-03-19 15:27:20.000', 0);


-- select * from sys_menu t where t.update_date > DATE(date_sub(now(),interval 12 day))
--
-- select * from sys_language t where t.table_id in (
-- select id from sys_menu t where t.update_date > DATE(date_sub(now(),interval 12 day))
-- )

delete from sys_menu where id in (1110386559477112834,1111643626912608257,1239469165237006337,1239469165237006338,1239469165237006339,1239469165237006340,1239469165237006341,1239469165237006342,1239735762999730177,1239803396873195522,1239803396873195523,1239803396873195524,1239803396873195525,1239803396873195526,1239803396873195527,1239810849740857346,1239810849740857347,1239810849740857348,1239810849740857349,1239810849740857350,1239810849740857351,1240096699762561025,1240096699762561026,1240096699762561027,1240096699762561028,1240096699762561029,1240096699762561030,1240149722375258113,1240151290801684481,1240151368337588225,1240151423320719361,1240151512093163522,1240178687567126530,1240178687567126531,1240178687567126532,1240178687567126533,1240178687567126534,1240537779146969089,1240538506661580802,1240539179507634177,1240539179511828481,1240539179511828482,1240539179511828483,1240539179511828484,1240817213535096833,1240924846725017601,1241597648583057410,1241597648583057411,1241597648583057412,1241597648583057413,1241597648583057414,1242329312044154881,1242329516176736258,1242383237305266178,1242716671051853826,1242716671056048130,1242716671056048131,1242716671056048132,1242716671056048133,1242717730512072705,1242717730512072706,1242717730512072707,1242717730512072708,1242717730512072709);
delete from sys_language where id in (277,278,279,293,294,295,1239469165237006343,1239469165237006344,1239469165237006345,1239469165237006346,1239469165237006347,1239469165237006348,1239469165237006349,1239469165237006350,1239469165237006351,1239469165237006352,1239469165237006353,1239469165237006354,1239469165237006355,1239469165237006356,1239469165237006357,1239469165237006358,1239469165237006359,1239469165237006360,1239735763322691586,1239803396873195528,1239803396873195529,1239803396873195530,1239803396873195531,1239803396873195532,1239803396873195533,1239803396873195534,1239803396873195535,1239803396873195536,1239803396873195537,1239803396873195538,1239803396873195539,1239803396873195540,1239803396873195541,1239803396873195542,1239803396873195543,1239803396873195544,1239803396873195545,1239810849740857352,1239810849740857353,1239810849740857354,1239810849740857355,1239810849740857356,1239810849740857357,1239810849740857358,1239810849740857359,1239810849740857360,1239810849740857361,1239810849740857362,1239810849740857363,1239810849740857364,1239810849740857365,1239810849740857366,1239810849740857367,1239810849740857368,1239810849740857369,1240096699762561031,1240096699762561032,1240096699762561033,1240096699762561034,1240096699762561035,1240096699762561036,1240096699762561037,1240096699762561038,1240096699762561039,1240096699762561040,1240096699762561041,1240096699762561042,1240096699762561043,1240096699762561044,1240096699762561045,1240096699762561046,1240096699762561047,1240096699762561048,1240149722597556225,1240151291078508546,1240151368538914818,1240151423698206721,1240151512294490113,1240178688607313922,1240178688758308865,1240178688892526594,1240178689035132929,1240178689177739265,1240178689328734210,1240178689483923458,1240178689626529794,1240178689773330433,1240178689928519682,1240178690071126018,1240178690243092482,1240178690381504514,1240178690515722242,1240178690654134274,1240537779545427970,1240538506871296002,1240539180203888641,1240539180308746242,1240539180409409537,1240539180518461442,1240539180614930434,1240539180736565250,1240539180828839937,1240539180929503233,1240539181030166529,1240539181122441217,1240539181269241858,1240539181369905153,1240539181470568449,1240539181604786178,1240539181705449473,1240817213967110145,1240924847412883458,1241597650495660034,1241597650629877762,1241597650751512578,1241597650877341697,1241597651007365121,1241597651187720194,1241597651313549314,1241597651439378433,1241597651607150593,1241597651732979714,1241597651858808833,1241597652047552513,1241597652173381633,1241597652299210754,1241597652475371522,1242329312224509953,1242329516352897025,1242383237561118722,1242716672628912129,1242716672813461505,1242716673023176706,1242716673203531777,1242716673396469761,1242716673555853313,1242716673719431170,1242716673878814722,1242716674042392578,1242716674222747650,1242716674377936898,1242716674545709058,1242716674700898306,1242716674868670466,1242716675032248322,1242717731346739201,1242717731661312001,1242717731803918338,1242717731933941761,1242717732063965185,1242717732223348738,1242717732357566465,1242717732487589890,1242717732617613314,1242717732747636737,1242717732865077249,1242717733062209538,1242717733192232961,1242717733322256385,1242717733477445633);

INSERT INTO sys_menu (id, pid, url, permissions, `type`, icon, css_style, front_color, bg_color, sort, creator, create_date, updater, update_date, is_important, menu_class, client, show_flag) VALUES(1110386559477112834, 1108978773529309186, 'sys/pwdAudit', '', 0, 'icon-idcard', NULL, NULL, NULL, 52, 'admin', '2019-03-26 11:42:40.000', 'admin', '2020-03-25 09:28:30.000', '0', NULL, 'C01', 1);
INSERT INTO sys_menu (id, pid, url, permissions, `type`, icon, css_style, front_color, bg_color, sort, creator, create_date, updater, update_date, is_important, menu_class, client, show_flag) VALUES(1111643626912608257, 1108978773529309186, 'sys/privilegeAudit', '', 0, 'icon-down-circle', NULL, NULL, NULL, 42, 'admin', '2019-03-29 22:57:49.000', 'admin', '2020-03-25 09:28:19.000', '0', NULL, 'C01', 1);
INSERT INTO sys_menu (id, pid, url, permissions, `type`, icon, css_style, front_color, bg_color, sort, creator, create_date, updater, update_date, is_important, menu_class, client, show_flag) VALUES(1239469165237006337, 1129274780424445954, 'bpm/bpmVariableRepair', NULL, 0, 'icon-warning-circle', NULL, NULL, NULL, 581, 'admin', '2020-03-16 16:30:52.000', 'admin', '2020-03-16 16:30:52.000', '0', NULL, 'C01', 1);
INSERT INTO sys_menu (id, pid, url, permissions, `type`, icon, css_style, front_color, bg_color, sort, creator, create_date, updater, update_date, is_important, menu_class, client, show_flag) VALUES(1239469165237006338, 1239469165237006337, NULL, 'bpm:bpmVariableRepair:page,bpm:bpmVariableRepair:info', 1, NULL, NULL, NULL, NULL, 0, 'admin', '2020-03-16 16:30:52.000', 'admin', '2020-03-16 16:30:52.000', '0', NULL, 'C01', 1);
INSERT INTO sys_menu (id, pid, url, permissions, `type`, icon, css_style, front_color, bg_color, sort, creator, create_date, updater, update_date, is_important, menu_class, client, show_flag) VALUES(1239469165237006339, 1239469165237006337, NULL, 'bpm:bpmVariableRepair:save', 1, NULL, NULL, NULL, NULL, 1, 'admin', '2020-03-16 16:30:52.000', 'admin', '2020-03-16 16:30:52.000', '0', NULL, 'C01', 1);
INSERT INTO sys_menu (id, pid, url, permissions, `type`, icon, css_style, front_color, bg_color, sort, creator, create_date, updater, update_date, is_important, menu_class, client, show_flag) VALUES(1239469165237006340, 1239469165237006337, NULL, 'bpm:bpmVariableRepair:update', 1, NULL, NULL, NULL, NULL, 2, 'admin', '2020-03-16 16:30:52.000', 'admin', '2020-03-16 16:30:52.000', '0', NULL, 'C01', 1);
INSERT INTO sys_menu (id, pid, url, permissions, `type`, icon, css_style, front_color, bg_color, sort, creator, create_date, updater, update_date, is_important, menu_class, client, show_flag) VALUES(1239469165237006341, 1239469165237006337, NULL, 'bpm:bpmVariableRepair:delete', 1, NULL, NULL, NULL, NULL, 3, 'admin', '2020-03-16 16:30:52.000', 'admin', '2020-03-16 16:30:52.000', '0', NULL, 'C01', 1);
INSERT INTO sys_menu (id, pid, url, permissions, `type`, icon, css_style, front_color, bg_color, sort, creator, create_date, updater, update_date, is_important, menu_class, client, show_flag) VALUES(1239469165237006342, 1239469165237006337, NULL, 'bpm:bpmVariableRepair:export', 1, NULL, NULL, NULL, NULL, 4, 'admin', '2020-03-16 16:30:52.000', 'admin', '2020-03-16 16:30:52.000', '0', NULL, 'C01', 1);
INSERT INTO sys_menu (id, pid, url, permissions, `type`, icon, css_style, front_color, bg_color, sort, creator, create_date, updater, update_date, is_important, menu_class, client, show_flag) VALUES(1239735762999730177, 1240537779146969089, '', '', 3, 'icon-attachment', '', '', '', 20, 'admin', '2020-03-17 10:10:14.000', 'admin', '2020-03-19 15:18:40.000', '0', NULL, 'C01', 1);
INSERT INTO sys_menu (id, pid, url, permissions, `type`, icon, css_style, front_color, bg_color, sort, creator, create_date, updater, update_date, is_important, menu_class, client, show_flag) VALUES(1239803396873195522, 1239735762999730177, 'dpd/dpdRule', NULL, 0, 'icon-container-fill', NULL, NULL, NULL, 30, 'admin', '2020-03-17 14:38:59.000', 'admin', '2020-03-18 16:37:32.000', '0', NULL, 'C01', 1);
INSERT INTO sys_menu (id, pid, url, permissions, `type`, icon, css_style, front_color, bg_color, sort, creator, create_date, updater, update_date, is_important, menu_class, client, show_flag) VALUES(1239803396873195523, 1239803396873195522, '', 'dpd:dpdRule:page,dpd:dpdRule:info,dpd:dpdRuleConf:info', 1, '', '', '', '', 0, 'admin', '2020-03-17 14:38:59.000', 'admin', '2020-03-17 16:22:58.000', '0', NULL, 'C01', 1);
INSERT INTO sys_menu (id, pid, url, permissions, `type`, icon, css_style, front_color, bg_color, sort, creator, create_date, updater, update_date, is_important, menu_class, client, show_flag) VALUES(1239803396873195524, 1239803396873195522, NULL, 'dpd:dpdRule:save', 1, NULL, NULL, NULL, NULL, 1, 'admin', '2020-03-17 14:38:59.000', 'admin', '2020-03-17 14:38:59.000', '0', NULL, 'C01', 1);
INSERT INTO sys_menu (id, pid, url, permissions, `type`, icon, css_style, front_color, bg_color, sort, creator, create_date, updater, update_date, is_important, menu_class, client, show_flag) VALUES(1239803396873195525, 1239803396873195522, NULL, 'dpd:dpdRule:update', 1, NULL, NULL, NULL, NULL, 2, 'admin', '2020-03-17 14:38:59.000', 'admin', '2020-03-17 14:38:59.000', '0', NULL, 'C01', 1);
INSERT INTO sys_menu (id, pid, url, permissions, `type`, icon, css_style, front_color, bg_color, sort, creator, create_date, updater, update_date, is_important, menu_class, client, show_flag) VALUES(1239803396873195526, 1239803396873195522, NULL, 'dpd:dpdRule:delete', 1, NULL, NULL, NULL, NULL, 3, 'admin', '2020-03-17 14:38:59.000', 'admin', '2020-03-17 14:38:59.000', '0', NULL, 'C01', 1);
INSERT INTO sys_menu (id, pid, url, permissions, `type`, icon, css_style, front_color, bg_color, sort, creator, create_date, updater, update_date, is_important, menu_class, client, show_flag) VALUES(1239803396873195527, 1239803396873195522, NULL, 'dpd:dpdRule:export', 1, NULL, NULL, NULL, NULL, 4, 'admin', '2020-03-17 14:38:59.000', 'admin', '2020-03-17 14:38:59.000', '0', NULL, 'C01', 1);
INSERT INTO sys_menu (id, pid, url, permissions, `type`, icon, css_style, front_color, bg_color, sort, creator, create_date, updater, update_date, is_important, menu_class, client, show_flag) VALUES(1239810849740857346, 1239735762999730177, 'dpd/dpdColumn', NULL, 0, 'icon-container', NULL, NULL, NULL, 20, 'admin', '2020-03-17 15:08:36.000', 'admin', '2020-03-18 16:37:20.000', '0', NULL, 'C01', 1);
INSERT INTO sys_menu (id, pid, url, permissions, `type`, icon, css_style, front_color, bg_color, sort, creator, create_date, updater, update_date, is_important, menu_class, client, show_flag) VALUES(1239810849740857347, 1239810849740857346, NULL, 'dpd:dpdColumn:page,dpd:dpdColumn:info', 1, NULL, NULL, NULL, NULL, 0, 'admin', '2020-03-17 15:08:36.000', 'admin', '2020-03-17 15:08:36.000', '0', NULL, 'C01', 1);
INSERT INTO sys_menu (id, pid, url, permissions, `type`, icon, css_style, front_color, bg_color, sort, creator, create_date, updater, update_date, is_important, menu_class, client, show_flag) VALUES(1239810849740857348, 1239810849740857346, NULL, 'dpd:dpdColumn:save', 1, NULL, NULL, NULL, NULL, 1, 'admin', '2020-03-17 15:08:36.000', 'admin', '2020-03-17 15:08:36.000', '0', NULL, 'C01', 1);
INSERT INTO sys_menu (id, pid, url, permissions, `type`, icon, css_style, front_color, bg_color, sort, creator, create_date, updater, update_date, is_important, menu_class, client, show_flag) VALUES(1239810849740857349, 1239810849740857346, NULL, 'dpd:dpdColumn:update', 1, NULL, NULL, NULL, NULL, 2, 'admin', '2020-03-17 15:08:36.000', 'admin', '2020-03-17 15:08:36.000', '0', NULL, 'C01', 1);
INSERT INTO sys_menu (id, pid, url, permissions, `type`, icon, css_style, front_color, bg_color, sort, creator, create_date, updater, update_date, is_important, menu_class, client, show_flag) VALUES(1239810849740857350, 1239810849740857346, NULL, 'dpd:dpdColumn:delete', 1, NULL, NULL, NULL, NULL, 3, 'admin', '2020-03-17 15:08:36.000', 'admin', '2020-03-17 15:08:36.000', '0', NULL, 'C01', 1);
INSERT INTO sys_menu (id, pid, url, permissions, `type`, icon, css_style, front_color, bg_color, sort, creator, create_date, updater, update_date, is_important, menu_class, client, show_flag) VALUES(1239810849740857351, 1239810849740857346, NULL, 'dpd:dpdColumn:export', 1, NULL, NULL, NULL, NULL, 4, 'admin', '2020-03-17 15:08:36.000', 'admin', '2020-03-17 15:08:36.000', '0', NULL, 'C01', 1);
INSERT INTO sys_menu (id, pid, url, permissions, `type`, icon, css_style, front_color, bg_color, sort, creator, create_date, updater, update_date, is_important, menu_class, client, show_flag) VALUES(1240096699762561025, 1239735762999730177, 'dpd/dpdColumnType', NULL, 0, 'icon-diff', NULL, NULL, NULL, 10, 'admin', '2020-03-18 10:04:28.000', 'admin', '2020-03-18 16:37:10.000', '0', NULL, 'C01', 1);
INSERT INTO sys_menu (id, pid, url, permissions, `type`, icon, css_style, front_color, bg_color, sort, creator, create_date, updater, update_date, is_important, menu_class, client, show_flag) VALUES(1240096699762561026, 1240096699762561025, NULL, 'dpd:dpdColumnType:page,dpd:dpdColumnType:info', 1, NULL, NULL, NULL, NULL, 0, 'admin', '2020-03-18 10:04:28.000', 'admin', '2020-03-18 10:04:28.000', '0', NULL, 'C01', 1);
INSERT INTO sys_menu (id, pid, url, permissions, `type`, icon, css_style, front_color, bg_color, sort, creator, create_date, updater, update_date, is_important, menu_class, client, show_flag) VALUES(1240096699762561027, 1240096699762561025, NULL, 'dpd:dpdColumnType:save', 1, NULL, NULL, NULL, NULL, 1, 'admin', '2020-03-18 10:04:28.000', 'admin', '2020-03-18 10:04:28.000', '0', NULL, 'C01', 1);
INSERT INTO sys_menu (id, pid, url, permissions, `type`, icon, css_style, front_color, bg_color, sort, creator, create_date, updater, update_date, is_important, menu_class, client, show_flag) VALUES(1240096699762561028, 1240096699762561025, NULL, 'dpd:dpdColumnType:update', 1, NULL, NULL, NULL, NULL, 2, 'admin', '2020-03-18 10:04:28.000', 'admin', '2020-03-18 10:04:28.000', '0', NULL, 'C01', 1);
INSERT INTO sys_menu (id, pid, url, permissions, `type`, icon, css_style, front_color, bg_color, sort, creator, create_date, updater, update_date, is_important, menu_class, client, show_flag) VALUES(1240096699762561029, 1240096699762561025, NULL, 'dpd:dpdColumnType:delete', 1, NULL, NULL, NULL, NULL, 3, 'admin', '2020-03-18 10:04:28.000', 'admin', '2020-03-18 10:04:28.000', '0', NULL, 'C01', 1);
INSERT INTO sys_menu (id, pid, url, permissions, `type`, icon, css_style, front_color, bg_color, sort, creator, create_date, updater, update_date, is_important, menu_class, client, show_flag) VALUES(1240096699762561030, 1240096699762561025, NULL, 'dpd:dpdColumnType:export', 1, NULL, NULL, NULL, NULL, 4, 'admin', '2020-03-18 10:04:28.000', 'admin', '2020-03-18 10:04:28.000', '0', NULL, 'C01', 1);
INSERT INTO sys_menu (id, pid, url, permissions, `type`, icon, css_style, front_color, bg_color, sort, creator, create_date, updater, update_date, is_important, menu_class, client, show_flag) VALUES(1240149722375258113, 1129274780424445954, '/test/testOss', '', 0, '', '', '', '', 591, 'admin', '2020-03-18 13:35:09.000', 'admin', '2020-03-18 13:35:09.000', '0', NULL, 'C01', 1);
INSERT INTO sys_menu (id, pid, url, permissions, `type`, icon, css_style, front_color, bg_color, sort, creator, create_date, updater, update_date, is_important, menu_class, client, show_flag) VALUES(1240151290801684481, 1240149722375258113, '', 'test:testOss:info,test:testOss:page', 1, '', '', '', '', 10, 'admin', '2020-03-18 13:41:23.000', 'admin', '2020-03-18 13:41:23.000', '0', NULL, 'C01', 1);
INSERT INTO sys_menu (id, pid, url, permissions, `type`, icon, css_style, front_color, bg_color, sort, creator, create_date, updater, update_date, is_important, menu_class, client, show_flag) VALUES(1240151368337588225, 1240149722375258113, '', 'test:testOss:save', 1, '', '', '', '', 20, 'admin', '2020-03-18 13:41:42.000', 'admin', '2020-03-18 13:41:42.000', '0', NULL, 'C01', 1);
INSERT INTO sys_menu (id, pid, url, permissions, `type`, icon, css_style, front_color, bg_color, sort, creator, create_date, updater, update_date, is_important, menu_class, client, show_flag) VALUES(1240151423320719361, 1240149722375258113, '', 'test:testOss:update', 1, '', '', '', '', 30, 'admin', '2020-03-18 13:41:55.000', 'admin', '2020-03-18 13:41:55.000', '0', NULL, 'C01', 1);
INSERT INTO sys_menu (id, pid, url, permissions, `type`, icon, css_style, front_color, bg_color, sort, creator, create_date, updater, update_date, is_important, menu_class, client, show_flag) VALUES(1240151512093163522, 1240149722375258113, '', 'test:testOss:delete', 1, '', '', '', '', 40, 'admin', '2020-03-18 13:42:16.000', 'admin', '2020-03-18 13:42:16.000', '0', NULL, 'C01', 1);
INSERT INTO sys_menu (id, pid, url, permissions, `type`, icon, css_style, front_color, bg_color, sort, creator, create_date, updater, update_date, is_important, menu_class, client, show_flag) VALUES(1240178687567126530, 1239735762999730177, 'dpd/dpdTable', NULL, 0, 'icon-folder-open', NULL, NULL, NULL, 40, 'admin', '2020-03-18 15:30:15.000', 'admin', '2020-03-18 16:37:41.000', '0', NULL, 'C01', 1);
INSERT INTO sys_menu (id, pid, url, permissions, `type`, icon, css_style, front_color, bg_color, sort, creator, create_date, updater, update_date, is_important, menu_class, client, show_flag) VALUES(1240178687567126531, 1240178687567126530, NULL, 'dpd:dpdTable:page,dpd:dpdTable:info', 1, NULL, NULL, NULL, NULL, 10, 'admin', '2020-03-18 15:30:15.000', 'admin', '2020-03-18 15:30:15.000', '0', NULL, 'C01', 1);
INSERT INTO sys_menu (id, pid, url, permissions, `type`, icon, css_style, front_color, bg_color, sort, creator, create_date, updater, update_date, is_important, menu_class, client, show_flag) VALUES(1240178687567126532, 1240178687567126530, NULL, 'dpd:dpdTable:save', 1, NULL, NULL, NULL, NULL, 20, 'admin', '2020-03-18 15:30:15.000', 'admin', '2020-03-18 15:30:15.000', '0', NULL, 'C01', 1);
INSERT INTO sys_menu (id, pid, url, permissions, `type`, icon, css_style, front_color, bg_color, sort, creator, create_date, updater, update_date, is_important, menu_class, client, show_flag) VALUES(1240178687567126533, 1240178687567126530, NULL, 'dpd:dpdTable:update', 1, NULL, NULL, NULL, NULL, 30, 'admin', '2020-03-18 15:30:15.000', 'admin', '2020-03-18 15:30:15.000', '0', NULL, 'C01', 1);
INSERT INTO sys_menu (id, pid, url, permissions, `type`, icon, css_style, front_color, bg_color, sort, creator, create_date, updater, update_date, is_important, menu_class, client, show_flag) VALUES(1240178687567126534, 1240178687567126530, NULL, 'dpd:dpdTable:delete', 1, NULL, NULL, NULL, NULL, 40, 'admin', '2020-03-18 15:30:15.000', 'admin', '2020-03-18 15:30:15.000', '0', NULL, 'C01', 1);
INSERT INTO sys_menu (id, pid, url, permissions, `type`, icon, css_style, front_color, bg_color, sort, creator, create_date, updater, update_date, is_important, menu_class, client, show_flag) VALUES(1240537779146969089, 0, '', '', 2, 'icon-edit-square', '', '', '', 201, 'admin', '2020-03-19 15:17:09.000', 'admin', '2020-03-19 15:19:09.000', '0', NULL, 'C01', 1);
INSERT INTO sys_menu (id, pid, url, permissions, `type`, icon, css_style, front_color, bg_color, sort, creator, create_date, updater, update_date, is_important, menu_class, client, show_flag) VALUES(1240538506661580802, 1240537779146969089, '', '', 3, 'icon-project', '', '', '', 30, 'admin', '2020-03-19 15:20:03.000', 'admin', '2020-03-19 15:20:03.000', '0', NULL, 'C01', 1);
INSERT INTO sys_menu (id, pid, url, permissions, `type`, icon, css_style, front_color, bg_color, sort, creator, create_date, updater, update_date, is_important, menu_class, client, show_flag) VALUES(1240539179507634177, 1240538506661580802, 'drs/drsFormDef', NULL, 0, 'icon-audit', NULL, NULL, NULL, 10, 'admin', '2020-03-19 15:22:43.000', 'admin', '2020-03-19 15:24:11.000', '0', NULL, 'C01', 1);
INSERT INTO sys_menu (id, pid, url, permissions, `type`, icon, css_style, front_color, bg_color, sort, creator, create_date, updater, update_date, is_important, menu_class, client, show_flag) VALUES(1240539179511828481, 1240539179507634177, NULL, 'drs:drsFormDef:page,drs:drsFormDef:info', 1, NULL, NULL, NULL, NULL, 10, 'admin', '2020-03-19 15:22:43.000', 'admin', '2020-03-19 15:22:43.000', '0', NULL, 'C01', 1);
INSERT INTO sys_menu (id, pid, url, permissions, `type`, icon, css_style, front_color, bg_color, sort, creator, create_date, updater, update_date, is_important, menu_class, client, show_flag) VALUES(1240539179511828482, 1240539179507634177, NULL, 'drs:drsFormDef:save', 1, NULL, NULL, NULL, NULL, 20, 'admin', '2020-03-19 15:22:43.000', 'admin', '2020-03-19 15:22:43.000', '0', NULL, 'C01', 1);
INSERT INTO sys_menu (id, pid, url, permissions, `type`, icon, css_style, front_color, bg_color, sort, creator, create_date, updater, update_date, is_important, menu_class, client, show_flag) VALUES(1240539179511828483, 1240539179507634177, NULL, 'drs:drsFormDef:update', 1, NULL, NULL, NULL, NULL, 30, 'admin', '2020-03-19 15:22:43.000', 'admin', '2020-03-19 15:22:43.000', '0', NULL, 'C01', 1);
INSERT INTO sys_menu (id, pid, url, permissions, `type`, icon, css_style, front_color, bg_color, sort, creator, create_date, updater, update_date, is_important, menu_class, client, show_flag) VALUES(1240539179511828484, 1240539179507634177, NULL, 'drs:drsFormDef:delete', 1, NULL, NULL, NULL, NULL, 40, 'admin', '2020-03-19 15:22:43.000', 'admin', '2020-03-19 15:22:43.000', '0', NULL, 'C01', 1);
INSERT INTO sys_menu (id, pid, url, permissions, `type`, icon, css_style, front_color, bg_color, sort, creator, create_date, updater, update_date, is_important, menu_class, client, show_flag) VALUES(1240817213535096833, 1240178687567126530, '', 'dpd:dpdTable:exec', 1, '', '', '', '', 50, 'admin', '2020-03-20 09:47:32.000', 'admin', '2020-03-20 09:47:32.000', '0', NULL, 'C01', 1);
INSERT INTO sys_menu (id, pid, url, permissions, `type`, icon, css_style, front_color, bg_color, sort, creator, create_date, updater, update_date, is_important, menu_class, client, show_flag) VALUES(1240924846725017601, 1240538506661580802, 'drs/drsFormTabs', '', 0, 'icon-edit-square', '', '', '', 40, 'admin', '2020-03-20 16:55:13.000', 'admin', '2020-03-20 16:55:36.000', '0', NULL, 'C01', 1);
INSERT INTO sys_menu (id, pid, url, permissions, `type`, icon, css_style, front_color, bg_color, sort, creator, create_date, updater, update_date, is_important, menu_class, client, show_flag) VALUES(1241597648583057410, 1240538506661580802, 'drs/drsFormInst', NULL, 0, 'icon-detail', NULL, NULL, NULL, 50, 'admin', '2020-03-22 13:28:42.000', 'admin', '2020-03-22 13:29:25.000', '0', NULL, 'C01', 1);
INSERT INTO sys_menu (id, pid, url, permissions, `type`, icon, css_style, front_color, bg_color, sort, creator, create_date, updater, update_date, is_important, menu_class, client, show_flag) VALUES(1241597648583057411, 1241597648583057410, NULL, 'drs:drsFormInst:page,drs:drsFormInst:info', 1, NULL, NULL, NULL, NULL, 10, 'admin', '2020-03-22 13:28:42.000', 'admin', '2020-03-22 13:28:42.000', '0', NULL, 'C01', 1);
INSERT INTO sys_menu (id, pid, url, permissions, `type`, icon, css_style, front_color, bg_color, sort, creator, create_date, updater, update_date, is_important, menu_class, client, show_flag) VALUES(1241597648583057412, 1241597648583057410, NULL, 'drs:drsFormInst:save', 1, NULL, NULL, NULL, NULL, 20, 'admin', '2020-03-22 13:28:42.000', 'admin', '2020-03-22 13:28:42.000', '0', NULL, 'C01', 1);
INSERT INTO sys_menu (id, pid, url, permissions, `type`, icon, css_style, front_color, bg_color, sort, creator, create_date, updater, update_date, is_important, menu_class, client, show_flag) VALUES(1241597648583057413, 1241597648583057410, NULL, 'drs:drsFormInst:update', 1, NULL, NULL, NULL, NULL, 30, 'admin', '2020-03-22 13:28:42.000', 'admin', '2020-03-22 13:28:42.000', '0', NULL, 'C01', 1);
INSERT INTO sys_menu (id, pid, url, permissions, `type`, icon, css_style, front_color, bg_color, sort, creator, create_date, updater, update_date, is_important, menu_class, client, show_flag) VALUES(1241597648583057414, 1241597648583057410, NULL, 'drs:drsFormInst:delete', 1, NULL, NULL, NULL, NULL, 40, 'admin', '2020-03-22 13:28:42.000', 'admin', '2020-03-22 13:28:42.000', '0', NULL, 'C01', 1);
INSERT INTO sys_menu (id, pid, url, permissions, `type`, icon, css_style, front_color, bg_color, sort, creator, create_date, updater, update_date, is_important, menu_class, client, show_flag) VALUES(1242329312044154881, 1108978773529309186, 'sys/dataScopeAudit', 'sys:sysruledata:page,sys:sysRuleSort:page,sys:dept:list,sys:user:page', 0, 'icon-edit-square', '', '', '', 12, 'admin', '2020-03-24 13:56:04.000', 'admin', '2020-03-25 15:46:29.000', '0', NULL, 'C01', 1);
INSERT INTO sys_menu (id, pid, url, permissions, `type`, icon, css_style, front_color, bg_color, sort, creator, create_date, updater, update_date, is_important, menu_class, client, show_flag) VALUES(1242329516176736258, 1108978773529309186, 'sys/dataScopeCustrule', 'sys:user:page,sys:sysUserCustrule:genList', 0, 'icon-edit-square', '', '', '', 22, 'admin', '2020-03-24 13:56:53.000', 'admin', '2020-03-25 15:48:13.000', '0', NULL, 'C01', 1);
INSERT INTO sys_menu (id, pid, url, permissions, `type`, icon, css_style, front_color, bg_color, sort, creator, create_date, updater, update_date, is_important, menu_class, client, show_flag) VALUES(1242383237305266178, 1108978773529309186, 'sys/roleMenuAudit', '', 0, 'icon-check-square', '', '', '', 32, 'admin', '2020-03-24 17:30:21.000', 'admin', '2020-03-26 18:01:29.000', '0', NULL, 'C01', 1);
INSERT INTO sys_menu (id, pid, url, permissions, `type`, icon, css_style, front_color, bg_color, sort, creator, create_date, updater, update_date, is_important, menu_class, client, show_flag) VALUES(1242716671051853826, 1067246875800000046, 'sys/sysLogSql', NULL, 0, NULL, NULL, NULL, NULL, 12, 'admin', '2020-03-25 15:35:18.000', 'admin', '2020-03-25 15:35:18.000', '0', NULL, 'C01', 1);
INSERT INTO sys_menu (id, pid, url, permissions, `type`, icon, css_style, front_color, bg_color, sort, creator, create_date, updater, update_date, is_important, menu_class, client, show_flag) VALUES(1242716671056048130, 1242716671051853826, NULL, 'sys:sysLogSql:page,sys:sysLogSql:info', 1, NULL, NULL, NULL, NULL, 10, 'admin', '2020-03-25 15:35:18.000', 'admin', '2020-03-25 15:35:18.000', '0', NULL, 'C01', 1);
INSERT INTO sys_menu (id, pid, url, permissions, `type`, icon, css_style, front_color, bg_color, sort, creator, create_date, updater, update_date, is_important, menu_class, client, show_flag) VALUES(1242716671056048131, 1242716671051853826, NULL, 'sys:sysLogSql:save', 1, NULL, NULL, NULL, NULL, 20, 'admin', '2020-03-25 15:35:18.000', 'admin', '2020-03-25 15:35:18.000', '0', NULL, 'C01', 1);
INSERT INTO sys_menu (id, pid, url, permissions, `type`, icon, css_style, front_color, bg_color, sort, creator, create_date, updater, update_date, is_important, menu_class, client, show_flag) VALUES(1242716671056048132, 1242716671051853826, NULL, 'sys:sysLogSql:update', 1, NULL, NULL, NULL, NULL, 30, 'admin', '2020-03-25 15:35:18.000', 'admin', '2020-03-25 15:35:18.000', '0', NULL, 'C01', 1);
INSERT INTO sys_menu (id, pid, url, permissions, `type`, icon, css_style, front_color, bg_color, sort, creator, create_date, updater, update_date, is_important, menu_class, client, show_flag) VALUES(1242716671056048133, 1242716671051853826, NULL, 'sys:sysLogSql:delete', 1, NULL, NULL, NULL, NULL, 40, 'admin', '2020-03-25 15:35:18.000', 'admin', '2020-03-25 15:35:18.000', '0', NULL, 'C01', 1);
INSERT INTO sys_menu (id, pid, url, permissions, `type`, icon, css_style, front_color, bg_color, sort, creator, create_date, updater, update_date, is_important, menu_class, client, show_flag) VALUES(1242717730512072705, 1067246875800000046, 'sys/sysLogUserBehavior', NULL, 0, NULL, NULL, NULL, NULL, 22, 'admin', '2020-03-25 15:39:30.000', 'admin', '2020-03-25 15:39:30.000', '0', NULL, 'C01', 1);
INSERT INTO sys_menu (id, pid, url, permissions, `type`, icon, css_style, front_color, bg_color, sort, creator, create_date, updater, update_date, is_important, menu_class, client, show_flag) VALUES(1242717730512072706, 1242717730512072705, NULL, 'sys:sysLogUserBehavior:page,sys:sysLogUserBehavior:info', 1, NULL, NULL, NULL, NULL, 10, 'admin', '2020-03-25 15:39:30.000', 'admin', '2020-03-25 15:39:30.000', '0', NULL, 'C01', 1);
INSERT INTO sys_menu (id, pid, url, permissions, `type`, icon, css_style, front_color, bg_color, sort, creator, create_date, updater, update_date, is_important, menu_class, client, show_flag) VALUES(1242717730512072707, 1242717730512072705, NULL, 'sys:sysLogUserBehavior:save', 1, NULL, NULL, NULL, NULL, 20, 'admin', '2020-03-25 15:39:30.000', 'admin', '2020-03-25 15:39:30.000', '0', NULL, 'C01', 1);
INSERT INTO sys_menu (id, pid, url, permissions, `type`, icon, css_style, front_color, bg_color, sort, creator, create_date, updater, update_date, is_important, menu_class, client, show_flag) VALUES(1242717730512072708, 1242717730512072705, NULL, 'sys:sysLogUserBehavior:update', 1, NULL, NULL, NULL, NULL, 30, 'admin', '2020-03-25 15:39:30.000', 'admin', '2020-03-25 15:39:30.000', '0', NULL, 'C01', 1);
INSERT INTO sys_menu (id, pid, url, permissions, `type`, icon, css_style, front_color, bg_color, sort, creator, create_date, updater, update_date, is_important, menu_class, client, show_flag) VALUES(1242717730512072709, 1242717730512072705, NULL, 'sys:sysLogUserBehavior:delete', 1, NULL, NULL, NULL, NULL, 40, 'admin', '2020-03-25 15:39:30.000', 'admin', '2020-03-25 15:39:30.000', '0', NULL, 'C01', 1);

INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(277, 'sys_menu', 1110386559477112834, 'name', 'PwdAudit', 'en-US');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(278, 'sys_menu', 1110386559477112834, 'name', '密码审计', 'zh-CN');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(279, 'sys_menu', 1110386559477112834, 'name', '密碼審計', 'zh-TW');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(293, 'sys_menu', 1111643626912608257, 'name', 'Privilege Audit', 'en-US');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(294, 'sys_menu', 1111643626912608257, 'name', '用户权限审计', 'zh-CN');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(295, 'sys_menu', 1111643626912608257, 'name', '許可權稽核', 'zh-TW');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1239469165237006343, 'sys_menu', 1239469165237006337, 'name', '流程变量修复表', 'en-US');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1239469165237006344, 'sys_menu', 1239469165237006337, 'name', '流程变量修复表', 'zh-CN');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1239469165237006345, 'sys_menu', 1239469165237006337, 'name', '流程变量修复表', 'zh-TW');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1239469165237006346, 'sys_menu', 1239469165237006338, 'name', 'View', 'en-US');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1239469165237006347, 'sys_menu', 1239469165237006338, 'name', '查看', 'zh-CN');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1239469165237006348, 'sys_menu', 1239469165237006338, 'name', '查看', 'zh-TW');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1239469165237006349, 'sys_menu', 1239469165237006339, 'name', 'Add', 'en-US');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1239469165237006350, 'sys_menu', 1239469165237006339, 'name', '新增', 'zh-CN');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1239469165237006351, 'sys_menu', 1239469165237006339, 'name', '新增', 'zh-TW');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1239469165237006352, 'sys_menu', 1239469165237006340, 'name', 'Edit', 'en-US');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1239469165237006353, 'sys_menu', 1239469165237006340, 'name', '修改', 'zh-CN');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1239469165237006354, 'sys_menu', 1239469165237006340, 'name', '修改', 'zh-TW');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1239469165237006355, 'sys_menu', 1239469165237006341, 'name', 'Delete', 'en-US');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1239469165237006356, 'sys_menu', 1239469165237006341, 'name', '删除', 'zh-CN');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1239469165237006357, 'sys_menu', 1239469165237006341, 'name', '刪除', 'zh-TW');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1239469165237006358, 'sys_menu', 1239469165237006342, 'name', 'Export', 'en-US');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1239469165237006359, 'sys_menu', 1239469165237006342, 'name', '导出', 'zh-CN');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1239469165237006360, 'sys_menu', 1239469165237006342, 'name', '導出', 'zh-TW');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1239735763322691586, 'sys_menu', 1239735762999730177, 'name', '数据库设计', 'zh-CN');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1239803396873195528, 'sys_menu', 1239803396873195522, 'name', '规则表', 'en-US');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1239803396873195529, 'sys_menu', 1239803396873195522, 'name', '规则库', 'zh-CN');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1239803396873195530, 'sys_menu', 1239803396873195522, 'name', '规则表', 'zh-TW');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1239803396873195531, 'sys_menu', 1239803396873195523, 'name', 'View', 'en-US');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1239803396873195532, 'sys_menu', 1239803396873195523, 'name', '查看', 'zh-CN');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1239803396873195533, 'sys_menu', 1239803396873195523, 'name', '查看', 'zh-TW');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1239803396873195534, 'sys_menu', 1239803396873195524, 'name', 'Add', 'en-US');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1239803396873195535, 'sys_menu', 1239803396873195524, 'name', '新增', 'zh-CN');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1239803396873195536, 'sys_menu', 1239803396873195524, 'name', '新增', 'zh-TW');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1239803396873195537, 'sys_menu', 1239803396873195525, 'name', 'Edit', 'en-US');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1239803396873195538, 'sys_menu', 1239803396873195525, 'name', '修改', 'zh-CN');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1239803396873195539, 'sys_menu', 1239803396873195525, 'name', '修改', 'zh-TW');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1239803396873195540, 'sys_menu', 1239803396873195526, 'name', 'Delete', 'en-US');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1239803396873195541, 'sys_menu', 1239803396873195526, 'name', '删除', 'zh-CN');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1239803396873195542, 'sys_menu', 1239803396873195526, 'name', '刪除', 'zh-TW');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1239803396873195543, 'sys_menu', 1239803396873195527, 'name', 'Export', 'en-US');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1239803396873195544, 'sys_menu', 1239803396873195527, 'name', '导出', 'zh-CN');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1239803396873195545, 'sys_menu', 1239803396873195527, 'name', '導出', 'zh-TW');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1239810849740857352, 'sys_menu', 1239810849740857346, 'name', '字段库', 'en-US');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1239810849740857353, 'sys_menu', 1239810849740857346, 'name', '字段库', 'zh-CN');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1239810849740857354, 'sys_menu', 1239810849740857346, 'name', '字段库', 'zh-TW');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1239810849740857355, 'sys_menu', 1239810849740857347, 'name', 'View', 'en-US');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1239810849740857356, 'sys_menu', 1239810849740857347, 'name', '查看', 'zh-CN');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1239810849740857357, 'sys_menu', 1239810849740857347, 'name', '查看', 'zh-TW');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1239810849740857358, 'sys_menu', 1239810849740857348, 'name', 'Add', 'en-US');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1239810849740857359, 'sys_menu', 1239810849740857348, 'name', '新增', 'zh-CN');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1239810849740857360, 'sys_menu', 1239810849740857348, 'name', '新增', 'zh-TW');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1239810849740857361, 'sys_menu', 1239810849740857349, 'name', 'Edit', 'en-US');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1239810849740857362, 'sys_menu', 1239810849740857349, 'name', '修改', 'zh-CN');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1239810849740857363, 'sys_menu', 1239810849740857349, 'name', '修改', 'zh-TW');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1239810849740857364, 'sys_menu', 1239810849740857350, 'name', 'Delete', 'en-US');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1239810849740857365, 'sys_menu', 1239810849740857350, 'name', '删除', 'zh-CN');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1239810849740857366, 'sys_menu', 1239810849740857350, 'name', '刪除', 'zh-TW');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1239810849740857367, 'sys_menu', 1239810849740857351, 'name', 'Export', 'en-US');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1239810849740857368, 'sys_menu', 1239810849740857351, 'name', '导出', 'zh-CN');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1239810849740857369, 'sys_menu', 1239810849740857351, 'name', '導出', 'zh-TW');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1240096699762561031, 'sys_menu', 1240096699762561025, 'name', '字段类型', 'en-US');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1240096699762561032, 'sys_menu', 1240096699762561025, 'name', '字段类型', 'zh-CN');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1240096699762561033, 'sys_menu', 1240096699762561025, 'name', '字段类型', 'zh-TW');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1240096699762561034, 'sys_menu', 1240096699762561026, 'name', 'View', 'en-US');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1240096699762561035, 'sys_menu', 1240096699762561026, 'name', '查看', 'zh-CN');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1240096699762561036, 'sys_menu', 1240096699762561026, 'name', '查看', 'zh-TW');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1240096699762561037, 'sys_menu', 1240096699762561027, 'name', 'Add', 'en-US');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1240096699762561038, 'sys_menu', 1240096699762561027, 'name', '新增', 'zh-CN');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1240096699762561039, 'sys_menu', 1240096699762561027, 'name', '新增', 'zh-TW');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1240096699762561040, 'sys_menu', 1240096699762561028, 'name', 'Edit', 'en-US');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1240096699762561041, 'sys_menu', 1240096699762561028, 'name', '修改', 'zh-CN');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1240096699762561042, 'sys_menu', 1240096699762561028, 'name', '修改', 'zh-TW');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1240096699762561043, 'sys_menu', 1240096699762561029, 'name', 'Delete', 'en-US');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1240096699762561044, 'sys_menu', 1240096699762561029, 'name', '删除', 'zh-CN');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1240096699762561045, 'sys_menu', 1240096699762561029, 'name', '刪除', 'zh-TW');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1240096699762561046, 'sys_menu', 1240096699762561030, 'name', 'Export', 'en-US');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1240096699762561047, 'sys_menu', 1240096699762561030, 'name', '导出', 'zh-CN');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1240096699762561048, 'sys_menu', 1240096699762561030, 'name', '導出', 'zh-TW');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1240149722597556225, 'sys_menu', 1240149722375258113, 'name', '附件上传', 'zh-CN');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1240151291078508546, 'sys_menu', 1240151290801684481, 'name', '查看', 'zh-CN');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1240151368538914818, 'sys_menu', 1240151368337588225, 'name', '新增', 'zh-CN');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1240151423698206721, 'sys_menu', 1240151423320719361, 'name', '修改', 'zh-CN');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1240151512294490113, 'sys_menu', 1240151512093163522, 'name', '删除', 'zh-CN');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1240178688607313922, 'sys_menu', 1240178687567126530, 'name', '新建表', 'en-US');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1240178688758308865, 'sys_menu', 1240178687567126530, 'name', '新建表', 'zh-CN');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1240178688892526594, 'sys_menu', 1240178687567126530, 'name', '新建表', 'zh-TW');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1240178689035132929, 'sys_menu', 1240178687567126531, 'name', 'View', 'en-US');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1240178689177739265, 'sys_menu', 1240178687567126531, 'name', '查看', 'zh-CN');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1240178689328734210, 'sys_menu', 1240178687567126531, 'name', '查看', 'zh-TW');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1240178689483923458, 'sys_menu', 1240178687567126532, 'name', 'Add', 'en-US');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1240178689626529794, 'sys_menu', 1240178687567126532, 'name', '新增', 'zh-CN');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1240178689773330433, 'sys_menu', 1240178687567126532, 'name', '新增', 'zh-TW');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1240178689928519682, 'sys_menu', 1240178687567126533, 'name', 'Edit', 'en-US');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1240178690071126018, 'sys_menu', 1240178687567126533, 'name', '修改', 'zh-CN');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1240178690243092482, 'sys_menu', 1240178687567126533, 'name', '修改', 'zh-TW');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1240178690381504514, 'sys_menu', 1240178687567126534, 'name', 'Delete', 'en-US');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1240178690515722242, 'sys_menu', 1240178687567126534, 'name', '删除', 'zh-CN');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1240178690654134274, 'sys_menu', 1240178687567126534, 'name', '删除', 'zh-TW');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1240537779545427970, 'sys_menu', 1240537779146969089, 'name', '设计模块', 'zh-CN');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1240538506871296002, 'sys_menu', 1240538506661580802, 'name', '在线表单设计', 'zh-CN');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1240539180203888641, 'sys_menu', 1240539179507634177, 'name', '数据填报-表单定义表', 'en-US');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1240539180308746242, 'sys_menu', 1240539179507634177, 'name', '表单定义管理', 'zh-CN');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1240539180409409537, 'sys_menu', 1240539179507634177, 'name', '数据填报-表单定义表', 'zh-TW');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1240539180518461442, 'sys_menu', 1240539179511828481, 'name', 'View', 'en-US');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1240539180614930434, 'sys_menu', 1240539179511828481, 'name', '查看', 'zh-CN');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1240539180736565250, 'sys_menu', 1240539179511828481, 'name', '查看', 'zh-TW');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1240539180828839937, 'sys_menu', 1240539179511828482, 'name', 'Add', 'en-US');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1240539180929503233, 'sys_menu', 1240539179511828482, 'name', '新增', 'zh-CN');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1240539181030166529, 'sys_menu', 1240539179511828482, 'name', '新增', 'zh-TW');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1240539181122441217, 'sys_menu', 1240539179511828483, 'name', 'Edit', 'en-US');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1240539181269241858, 'sys_menu', 1240539179511828483, 'name', '修改', 'zh-CN');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1240539181369905153, 'sys_menu', 1240539179511828483, 'name', '修改', 'zh-TW');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1240539181470568449, 'sys_menu', 1240539179511828484, 'name', 'Delete', 'en-US');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1240539181604786178, 'sys_menu', 1240539179511828484, 'name', '删除', 'zh-CN');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1240539181705449473, 'sys_menu', 1240539179511828484, 'name', '删除', 'zh-TW');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1240817213967110145, 'sys_menu', 1240817213535096833, 'name', '执行SQL', 'zh-CN');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1240924847412883458, 'sys_menu', 1240924846725017601, 'name', '表单填报清单', 'zh-CN');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1241597650495660034, 'sys_menu', 1241597648583057410, 'name', '数据填报数据清单', 'en-US');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1241597650629877762, 'sys_menu', 1241597648583057410, 'name', '数据填报数据清单', 'zh-CN');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1241597650751512578, 'sys_menu', 1241597648583057410, 'name', '数据填报数据清单', 'zh-TW');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1241597650877341697, 'sys_menu', 1241597648583057411, 'name', 'View', 'en-US');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1241597651007365121, 'sys_menu', 1241597648583057411, 'name', '查看', 'zh-CN');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1241597651187720194, 'sys_menu', 1241597648583057411, 'name', '查看', 'zh-TW');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1241597651313549314, 'sys_menu', 1241597648583057412, 'name', 'Add', 'en-US');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1241597651439378433, 'sys_menu', 1241597648583057412, 'name', '新增', 'zh-CN');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1241597651607150593, 'sys_menu', 1241597648583057412, 'name', '新增', 'zh-TW');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1241597651732979714, 'sys_menu', 1241597648583057413, 'name', 'Edit', 'en-US');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1241597651858808833, 'sys_menu', 1241597648583057413, 'name', '修改', 'zh-CN');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1241597652047552513, 'sys_menu', 1241597648583057413, 'name', '修改', 'zh-TW');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1241597652173381633, 'sys_menu', 1241597648583057414, 'name', 'Delete', 'en-US');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1241597652299210754, 'sys_menu', 1241597648583057414, 'name', '删除', 'zh-CN');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1241597652475371522, 'sys_menu', 1241597648583057414, 'name', '删除', 'zh-TW');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1242329312224509953, 'sys_menu', 1242329312044154881, 'name', '数据权限审计', 'zh-CN');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1242329516352897025, 'sys_menu', 1242329516176736258, 'name', '自定义权限审计', 'zh-CN');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1242383237561118722, 'sys_menu', 1242383237305266178, 'name', '角色权限审计', 'zh-CN');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1242716672628912129, 'sys_menu', 1242716671051853826, 'name', 'SQL执行监控日志', 'en-US');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1242716672813461505, 'sys_menu', 1242716671051853826, 'name', 'SQL执行监控日志', 'zh-CN');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1242716673023176706, 'sys_menu', 1242716671051853826, 'name', 'SQL执行监控日志', 'zh-TW');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1242716673203531777, 'sys_menu', 1242716671056048130, 'name', 'View', 'en-US');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1242716673396469761, 'sys_menu', 1242716671056048130, 'name', '查看', 'zh-CN');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1242716673555853313, 'sys_menu', 1242716671056048130, 'name', '查看', 'zh-TW');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1242716673719431170, 'sys_menu', 1242716671056048131, 'name', 'Add', 'en-US');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1242716673878814722, 'sys_menu', 1242716671056048131, 'name', '新增', 'zh-CN');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1242716674042392578, 'sys_menu', 1242716671056048131, 'name', '新增', 'zh-TW');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1242716674222747650, 'sys_menu', 1242716671056048132, 'name', 'Edit', 'en-US');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1242716674377936898, 'sys_menu', 1242716671056048132, 'name', '修改', 'zh-CN');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1242716674545709058, 'sys_menu', 1242716671056048132, 'name', '修改', 'zh-TW');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1242716674700898306, 'sys_menu', 1242716671056048133, 'name', 'Delete', 'en-US');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1242716674868670466, 'sys_menu', 1242716671056048133, 'name', '删除', 'zh-CN');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1242716675032248322, 'sys_menu', 1242716671056048133, 'name', '删除', 'zh-TW');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1242717731346739201, 'sys_menu', 1242717730512072705, 'name', '用户行为日志', 'en-US');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1242717731661312001, 'sys_menu', 1242717730512072705, 'name', '用户行为日志', 'zh-CN');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1242717731803918338, 'sys_menu', 1242717730512072705, 'name', '用户行为日志', 'zh-TW');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1242717731933941761, 'sys_menu', 1242717730512072706, 'name', 'View', 'en-US');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1242717732063965185, 'sys_menu', 1242717730512072706, 'name', '查看', 'zh-CN');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1242717732223348738, 'sys_menu', 1242717730512072706, 'name', '查看', 'zh-TW');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1242717732357566465, 'sys_menu', 1242717730512072707, 'name', 'Add', 'en-US');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1242717732487589890, 'sys_menu', 1242717730512072707, 'name', '新增', 'zh-CN');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1242717732617613314, 'sys_menu', 1242717730512072707, 'name', '新增', 'zh-TW');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1242717732747636737, 'sys_menu', 1242717730512072708, 'name', 'Edit', 'en-US');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1242717732865077249, 'sys_menu', 1242717730512072708, 'name', '修改', 'zh-CN');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1242717733062209538, 'sys_menu', 1242717730512072708, 'name', '修改', 'zh-TW');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1242717733192232961, 'sys_menu', 1242717730512072709, 'name', 'Delete', 'en-US');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1242717733322256385, 'sys_menu', 1242717730512072709, 'name', '删除', 'zh-CN');
INSERT INTO sys_language (id, table_name, table_id, field_name, field_value, `language`) VALUES(1242717733477445633, 'sys_menu', 1242717730512072709, 'name', '删除', 'zh-TW');



-- 20200409
-- 字典修正
UPDATE sys_dict_data SET  dict_label='无效' WHERE id=1186199405473079298;
UPDATE sys_dict_data SET  dict_label='有效' WHERE id=1186199443381198850;



-- 代码生成器 脚本 20200409
-- 菜单数据
-- 删除开发工具菜单 及 多语言
-- select * FROM sys_language where table_id in (
-- SELECT * FROM sys_menu t
-- WHERE t.pid = 1118389915403546626  OR t.pid IN ( SELECT id FROM sys_menu t WHERE t.pid = 1118389915403546626 )
-- );

delete from sys_language where id in (1143351404273438722,1145864425851240450,1145869359447457793,1184701240743849986,1184701395530444802,1186875642667433992,1186875642667433993,1186875642667433994,1202511950502637575,1202511950502637576,1202511950502637577,1245621868651786241,1245621868815364098,1245621868932804610,1186875642667433995,1186875642667433996,1186875642667433997,1186875642667433998,1186875642667433999,1186875642667434000,1186875642667434001,1186875642667434002,1186875642667434003,1186875642667434004,1186875642667434005,1186875642667434006,1186875642667434007,1186875642667434008,1186875642667434009,1202511950502637578,1202511950502637579,1202511950502637580,1202511950502637581,1202511950502637582,1202511950502637583,1202511950502637584,1202511950502637585,1202511950502637586,1202511950502637587,1202511950502637588,1202511950502637589,1202511950502637590,1202511950502637591,1202511950502637592,1245621869050245122,1245621869301903361,1245621869419343874,1245621869691973633,1245621869947826177,1245621870149152769,1245621870321119234,1245621870539223042,1245621870694412289,1245621870811852802,1245621870983819265,1245621871097065474);
delete from sys_menu where id in (1143351403967254529,1184657341549604865,1186875642667433986,1186875642667433987,1186875642667433988,1186875642667433989,1186875642667433990,1186875642667433991,1202511950502637569,1202511950502637570,1202511950502637571,1202511950502637572,1202511950502637573,1202511950502637574,1245621866734989314,1245621866734989315,1245621866734989316,1245621866734989317,1245621866734989318);

-- 增加开发工具菜单 及 多语言
-- 菜单
INSERT INTO `sys_menu`(`id`, `pid`, `url`, `permissions`, `type`, `icon`, `css_style`, `front_color`, `bg_color`, `sort`, `creator`, `create_date`, `updater`, `update_date`, `is_important`, `menu_class`, `client`, `show_flag`) VALUES (1143351403967254529, 1118389915403546626, 'sys/export-data', 'sys:export-data:export', 0, 'icon-save', NULL, NULL, NULL, 0, 'admin', '2019-06-25 10:53:12', 'admin', '2019-07-02 09:38:39', '0', NULL, '', 1);
INSERT INTO `sys_menu`(`id`, `pid`, `url`, `permissions`, `type`, `icon`, `css_style`, `front_color`, `bg_color`, `sort`, `creator`, `create_date`, `updater`, `update_date`, `is_important`, `menu_class`, `client`, `show_flag`) VALUES (1184657341549604865, 1118389915403546626, 'gen/genTable', NULL, 0, 'icon-reddit', NULL, NULL, NULL, 1, '1067246875800000001', '2019-10-17 13:21:30', 'admin', '2020-02-27 18:06:05', '0', NULL, '', 1);
INSERT INTO `sys_menu`(`id`, `pid`, `url`, `permissions`, `type`, `icon`, `css_style`, `front_color`, `bg_color`, `sort`, `creator`, `create_date`, `updater`, `update_date`, `is_important`, `menu_class`, `client`, `show_flag`) VALUES (1186875642667433986, 1118389915403546626, 'gen/genTableTemplate', NULL, 0, 'icon-idcard', NULL, NULL, NULL, 130, 'admin', '2019-10-23 13:22:59', 'admin', '2020-04-02 15:43:00', '0', NULL, 'C01', 1);
INSERT INTO `sys_menu`(`id`, `pid`, `url`, `permissions`, `type`, `icon`, `css_style`, `front_color`, `bg_color`, `sort`, `creator`, `create_date`, `updater`, `update_date`, `is_important`, `menu_class`, `client`, `show_flag`) VALUES (1186875642667433987, 1186875642667433986, NULL, 'gen:genTableTemplate:page,gen:genTableTemplate:info', 1, NULL, NULL, NULL, NULL, 0, 'admin', '2019-10-23 13:22:59', 'admin', '2019-10-23 13:22:59', '0', NULL, NULL, 1);
INSERT INTO `sys_menu`(`id`, `pid`, `url`, `permissions`, `type`, `icon`, `css_style`, `front_color`, `bg_color`, `sort`, `creator`, `create_date`, `updater`, `update_date`, `is_important`, `menu_class`, `client`, `show_flag`) VALUES (1186875642667433988, 1186875642667433986, NULL, 'gen:genTableTemplate:save', 1, NULL, NULL, NULL, NULL, 1, 'admin', '2019-10-23 13:22:59', 'admin', '2019-10-23 13:22:59', '0', NULL, NULL, 1);
INSERT INTO `sys_menu`(`id`, `pid`, `url`, `permissions`, `type`, `icon`, `css_style`, `front_color`, `bg_color`, `sort`, `creator`, `create_date`, `updater`, `update_date`, `is_important`, `menu_class`, `client`, `show_flag`) VALUES (1186875642667433989, 1186875642667433986, NULL, 'gen:genTableTemplate:update', 1, NULL, NULL, NULL, NULL, 2, 'admin', '2019-10-23 13:22:59', 'admin', '2019-10-23 13:22:59', '0', NULL, NULL, 1);
INSERT INTO `sys_menu`(`id`, `pid`, `url`, `permissions`, `type`, `icon`, `css_style`, `front_color`, `bg_color`, `sort`, `creator`, `create_date`, `updater`, `update_date`, `is_important`, `menu_class`, `client`, `show_flag`) VALUES (1186875642667433990, 1186875642667433986, NULL, 'gen:genTableTemplate:delete', 1, NULL, NULL, NULL, NULL, 3, 'admin', '2019-10-23 13:22:59', 'admin', '2019-10-23 13:22:59', '0', NULL, NULL, 1);
INSERT INTO `sys_menu`(`id`, `pid`, `url`, `permissions`, `type`, `icon`, `css_style`, `front_color`, `bg_color`, `sort`, `creator`, `create_date`, `updater`, `update_date`, `is_important`, `menu_class`, `client`, `show_flag`) VALUES (1186875642667433991, 1186875642667433986, NULL, 'gen:genTableTemplate:export', 1, NULL, NULL, NULL, NULL, 4, 'admin', '2019-10-23 13:22:59', 'admin', '2019-10-23 13:22:59', '0', NULL, NULL, 1);
INSERT INTO `sys_menu`(`id`, `pid`, `url`, `permissions`, `type`, `icon`, `css_style`, `front_color`, `bg_color`, `sort`, `creator`, `create_date`, `updater`, `update_date`, `is_important`, `menu_class`, `client`, `show_flag`) VALUES (1202511950502637569, 1118389915403546626, 'gen/genCodeSnippet', NULL, 0, 'icon-creditcard', NULL, NULL, NULL, 113, 'songlong', '2019-12-05 16:56:05', 'songlong', '2019-12-05 16:58:01', '0', NULL, 'C01', 1);
INSERT INTO `sys_menu`(`id`, `pid`, `url`, `permissions`, `type`, `icon`, `css_style`, `front_color`, `bg_color`, `sort`, `creator`, `create_date`, `updater`, `update_date`, `is_important`, `menu_class`, `client`, `show_flag`) VALUES (1202511950502637570, 1202511950502637569, NULL, 'gen:genCodeSnippet:page,gen:genCodeSnippet:info', 1, NULL, NULL, NULL, NULL, 0, 'songlong', '2019-12-05 16:56:05', 'songlong', '2019-12-05 16:56:05', '0', NULL, NULL, 1);
INSERT INTO `sys_menu`(`id`, `pid`, `url`, `permissions`, `type`, `icon`, `css_style`, `front_color`, `bg_color`, `sort`, `creator`, `create_date`, `updater`, `update_date`, `is_important`, `menu_class`, `client`, `show_flag`) VALUES (1202511950502637571, 1202511950502637569, NULL, 'gen:genCodeSnippet:save', 1, NULL, NULL, NULL, NULL, 1, 'songlong', '2019-12-05 16:56:05', 'songlong', '2019-12-05 16:56:05', '0', NULL, NULL, 1);
INSERT INTO `sys_menu`(`id`, `pid`, `url`, `permissions`, `type`, `icon`, `css_style`, `front_color`, `bg_color`, `sort`, `creator`, `create_date`, `updater`, `update_date`, `is_important`, `menu_class`, `client`, `show_flag`) VALUES (1202511950502637572, 1202511950502637569, NULL, 'gen:genCodeSnippet:update', 1, NULL, NULL, NULL, NULL, 2, 'songlong', '2019-12-05 16:56:05', 'songlong', '2019-12-05 16:56:05', '0', NULL, NULL, 1);
INSERT INTO `sys_menu`(`id`, `pid`, `url`, `permissions`, `type`, `icon`, `css_style`, `front_color`, `bg_color`, `sort`, `creator`, `create_date`, `updater`, `update_date`, `is_important`, `menu_class`, `client`, `show_flag`) VALUES (1202511950502637573, 1202511950502637569, NULL, 'gen:genCodeSnippet:delete', 1, NULL, NULL, NULL, NULL, 3, 'songlong', '2019-12-05 16:56:05', 'songlong', '2019-12-05 16:56:05', '0', NULL, NULL, 1);
INSERT INTO `sys_menu`(`id`, `pid`, `url`, `permissions`, `type`, `icon`, `css_style`, `front_color`, `bg_color`, `sort`, `creator`, `create_date`, `updater`, `update_date`, `is_important`, `menu_class`, `client`, `show_flag`) VALUES (1202511950502637574, 1202511950502637569, NULL, 'gen:genCodeSnippet:export', 1, NULL, NULL, NULL, NULL, 4, 'songlong', '2019-12-05 16:56:05', 'songlong', '2019-12-05 16:56:05', '0', NULL, NULL, 1);
INSERT INTO `sys_menu`(`id`, `pid`, `url`, `permissions`, `type`, `icon`, `css_style`, `front_color`, `bg_color`, `sort`, `creator`, `create_date`, `updater`, `update_date`, `is_important`, `menu_class`, `client`, `show_flag`) VALUES (1245621866734989314, 1118389915403546626, 'gen/genTableType', NULL, 0, 'icon-edit-square', NULL, NULL, NULL, 111, 'admin', '2020-04-02 15:59:30', 'admin', '2020-04-02 16:00:07', '0', NULL, 'C01', 1);
INSERT INTO `sys_menu`(`id`, `pid`, `url`, `permissions`, `type`, `icon`, `css_style`, `front_color`, `bg_color`, `sort`, `creator`, `create_date`, `updater`, `update_date`, `is_important`, `menu_class`, `client`, `show_flag`) VALUES (1245621866734989315, 1245621866734989314, NULL, 'gen:genTableType:page,gen:genTableType:info', 1, NULL, NULL, NULL, NULL, 10, 'admin', '2020-04-02 15:59:30', 'admin', '2020-04-02 15:59:30', '0', NULL, 'C01', 1);
INSERT INTO `sys_menu`(`id`, `pid`, `url`, `permissions`, `type`, `icon`, `css_style`, `front_color`, `bg_color`, `sort`, `creator`, `create_date`, `updater`, `update_date`, `is_important`, `menu_class`, `client`, `show_flag`) VALUES (1245621866734989316, 1245621866734989314, NULL, 'gen:genTableType:save', 1, NULL, NULL, NULL, NULL, 20, 'admin', '2020-04-02 15:59:30', 'admin', '2020-04-02 15:59:30', '0', NULL, 'C01', 1);
INSERT INTO `sys_menu`(`id`, `pid`, `url`, `permissions`, `type`, `icon`, `css_style`, `front_color`, `bg_color`, `sort`, `creator`, `create_date`, `updater`, `update_date`, `is_important`, `menu_class`, `client`, `show_flag`) VALUES (1245621866734989317, 1245621866734989314, NULL, 'gen:genTableType:update', 1, NULL, NULL, NULL, NULL, 30, 'admin', '2020-04-02 15:59:31', 'admin', '2020-04-02 15:59:31', '0', NULL, 'C01', 1);
INSERT INTO `sys_menu`(`id`, `pid`, `url`, `permissions`, `type`, `icon`, `css_style`, `front_color`, `bg_color`, `sort`, `creator`, `create_date`, `updater`, `update_date`, `is_important`, `menu_class`, `client`, `show_flag`) VALUES (1245621866734989318, 1245621866734989314, NULL, 'gen:genTableType:delete', 1, NULL, NULL, NULL, NULL, 40, 'admin', '2020-04-02 15:59:31', 'admin', '2020-04-02 15:59:31', '0', NULL, 'C01', 1);

-- 多语言
INSERT INTO `sys_language`(`id`, `table_name`, `table_id`, `field_name`, `field_value`, `language`) VALUES (1143351404273438722, 'sys_menu', 1143351403967254529, 'name', '系统升级同步', 'zh-CN');
INSERT INTO `sys_language`(`id`, `table_name`, `table_id`, `field_name`, `field_value`, `language`) VALUES (1145864425851240450, 'sys_menu', 1143351403967254529, 'name', 'System Upgrade-Sync', 'en-US');
INSERT INTO `sys_language`(`id`, `table_name`, `table_id`, `field_name`, `field_value`, `language`) VALUES (1145869359447457793, 'sys_menu', 1143351403967254529, 'name', '系統升級同步', 'zh-TW');
INSERT INTO `sys_language`(`id`, `table_name`, `table_id`, `field_name`, `field_value`, `language`) VALUES (1184701240743849986, 'sys_menu', 1184657341549604865, 'name', '代码生成', 'zh-CN');
INSERT INTO `sys_language`(`id`, `table_name`, `table_id`, `field_name`, `field_value`, `language`) VALUES (1184701395530444802, 'sys_menu', 1184657341549604865, 'name', '单表代码生成', 'zh-TW');
INSERT INTO `sys_language`(`id`, `table_name`, `table_id`, `field_name`, `field_value`, `language`) VALUES (1186875642667433992, 'sys_menu', 1186875642667433986, 'name', '生成模板列表', 'en-US');
INSERT INTO `sys_language`(`id`, `table_name`, `table_id`, `field_name`, `field_value`, `language`) VALUES (1186875642667433993, 'sys_menu', 1186875642667433986, 'name', '模板代码文件列表', 'zh-CN');
INSERT INTO `sys_language`(`id`, `table_name`, `table_id`, `field_name`, `field_value`, `language`) VALUES (1186875642667433994, 'sys_menu', 1186875642667433986, 'name', '生成模板列表', 'zh-TW');
INSERT INTO `sys_language`(`id`, `table_name`, `table_id`, `field_name`, `field_value`, `language`) VALUES (1202511950502637575, 'sys_menu', 1202511950502637569, 'name', '代码片段列表', 'en-US');
INSERT INTO `sys_language`(`id`, `table_name`, `table_id`, `field_name`, `field_value`, `language`) VALUES (1202511950502637576, 'sys_menu', 1202511950502637569, 'name', '代码片段列表', 'zh-CN');
INSERT INTO `sys_language`(`id`, `table_name`, `table_id`, `field_name`, `field_value`, `language`) VALUES (1202511950502637577, 'sys_menu', 1202511950502637569, 'name', '代码片段列表', 'zh-TW');
INSERT INTO `sys_language`(`id`, `table_name`, `table_id`, `field_name`, `field_value`, `language`) VALUES (1245621868651786241, 'sys_menu', 1245621866734989314, 'name', '代码模板表', 'en-US');
INSERT INTO `sys_language`(`id`, `table_name`, `table_id`, `field_name`, `field_value`, `language`) VALUES (1245621868815364098, 'sys_menu', 1245621866734989314, 'name', '代码模板表', 'zh-CN');
INSERT INTO `sys_language`(`id`, `table_name`, `table_id`, `field_name`, `field_value`, `language`) VALUES (1245621868932804610, 'sys_menu', 1245621866734989314, 'name', '代码模板表', 'zh-TW');
INSERT INTO `sys_language`(`id`, `table_name`, `table_id`, `field_name`, `field_value`, `language`) VALUES (1186875642667433995, 'sys_menu', 1186875642667433987, 'name', 'View', 'en-US');
INSERT INTO `sys_language`(`id`, `table_name`, `table_id`, `field_name`, `field_value`, `language`) VALUES (1186875642667433996, 'sys_menu', 1186875642667433987, 'name', '查看', 'zh-CN');
INSERT INTO `sys_language`(`id`, `table_name`, `table_id`, `field_name`, `field_value`, `language`) VALUES (1186875642667433997, 'sys_menu', 1186875642667433987, 'name', '查看', 'zh-TW');
INSERT INTO `sys_language`(`id`, `table_name`, `table_id`, `field_name`, `field_value`, `language`) VALUES (1186875642667433998, 'sys_menu', 1186875642667433988, 'name', 'Add', 'en-US');
INSERT INTO `sys_language`(`id`, `table_name`, `table_id`, `field_name`, `field_value`, `language`) VALUES (1186875642667433999, 'sys_menu', 1186875642667433988, 'name', '新增', 'zh-CN');
INSERT INTO `sys_language`(`id`, `table_name`, `table_id`, `field_name`, `field_value`, `language`) VALUES (1186875642667434000, 'sys_menu', 1186875642667433988, 'name', '新增', 'zh-TW');
INSERT INTO `sys_language`(`id`, `table_name`, `table_id`, `field_name`, `field_value`, `language`) VALUES (1186875642667434001, 'sys_menu', 1186875642667433989, 'name', 'Edit', 'en-US');
INSERT INTO `sys_language`(`id`, `table_name`, `table_id`, `field_name`, `field_value`, `language`) VALUES (1186875642667434002, 'sys_menu', 1186875642667433989, 'name', '修改', 'zh-CN');
INSERT INTO `sys_language`(`id`, `table_name`, `table_id`, `field_name`, `field_value`, `language`) VALUES (1186875642667434003, 'sys_menu', 1186875642667433989, 'name', '修改', 'zh-TW');
INSERT INTO `sys_language`(`id`, `table_name`, `table_id`, `field_name`, `field_value`, `language`) VALUES (1186875642667434004, 'sys_menu', 1186875642667433990, 'name', 'Delete', 'en-US');
INSERT INTO `sys_language`(`id`, `table_name`, `table_id`, `field_name`, `field_value`, `language`) VALUES (1186875642667434005, 'sys_menu', 1186875642667433990, 'name', '删除', 'zh-CN');
INSERT INTO `sys_language`(`id`, `table_name`, `table_id`, `field_name`, `field_value`, `language`) VALUES (1186875642667434006, 'sys_menu', 1186875642667433990, 'name', '刪除', 'zh-TW');
INSERT INTO `sys_language`(`id`, `table_name`, `table_id`, `field_name`, `field_value`, `language`) VALUES (1186875642667434007, 'sys_menu', 1186875642667433991, 'name', 'Export', 'en-US');
INSERT INTO `sys_language`(`id`, `table_name`, `table_id`, `field_name`, `field_value`, `language`) VALUES (1186875642667434008, 'sys_menu', 1186875642667433991, 'name', '导出', 'zh-CN');
INSERT INTO `sys_language`(`id`, `table_name`, `table_id`, `field_name`, `field_value`, `language`) VALUES (1186875642667434009, 'sys_menu', 1186875642667433991, 'name', '導出', 'zh-TW');
INSERT INTO `sys_language`(`id`, `table_name`, `table_id`, `field_name`, `field_value`, `language`) VALUES (1202511950502637578, 'sys_menu', 1202511950502637570, 'name', 'View', 'en-US');
INSERT INTO `sys_language`(`id`, `table_name`, `table_id`, `field_name`, `field_value`, `language`) VALUES (1202511950502637579, 'sys_menu', 1202511950502637570, 'name', '查看', 'zh-CN');
INSERT INTO `sys_language`(`id`, `table_name`, `table_id`, `field_name`, `field_value`, `language`) VALUES (1202511950502637580, 'sys_menu', 1202511950502637570, 'name', '查看', 'zh-TW');
INSERT INTO `sys_language`(`id`, `table_name`, `table_id`, `field_name`, `field_value`, `language`) VALUES (1202511950502637581, 'sys_menu', 1202511950502637571, 'name', 'Add', 'en-US');
INSERT INTO `sys_language`(`id`, `table_name`, `table_id`, `field_name`, `field_value`, `language`) VALUES (1202511950502637582, 'sys_menu', 1202511950502637571, 'name', '新增', 'zh-CN');
INSERT INTO `sys_language`(`id`, `table_name`, `table_id`, `field_name`, `field_value`, `language`) VALUES (1202511950502637583, 'sys_menu', 1202511950502637571, 'name', '新增', 'zh-TW');
INSERT INTO `sys_language`(`id`, `table_name`, `table_id`, `field_name`, `field_value`, `language`) VALUES (1202511950502637584, 'sys_menu', 1202511950502637572, 'name', 'Edit', 'en-US');
INSERT INTO `sys_language`(`id`, `table_name`, `table_id`, `field_name`, `field_value`, `language`) VALUES (1202511950502637585, 'sys_menu', 1202511950502637572, 'name', '修改', 'zh-CN');
INSERT INTO `sys_language`(`id`, `table_name`, `table_id`, `field_name`, `field_value`, `language`) VALUES (1202511950502637586, 'sys_menu', 1202511950502637572, 'name', '修改', 'zh-TW');
INSERT INTO `sys_language`(`id`, `table_name`, `table_id`, `field_name`, `field_value`, `language`) VALUES (1202511950502637587, 'sys_menu', 1202511950502637573, 'name', 'Delete', 'en-US');
INSERT INTO `sys_language`(`id`, `table_name`, `table_id`, `field_name`, `field_value`, `language`) VALUES (1202511950502637588, 'sys_menu', 1202511950502637573, 'name', '删除', 'zh-CN');
INSERT INTO `sys_language`(`id`, `table_name`, `table_id`, `field_name`, `field_value`, `language`) VALUES (1202511950502637589, 'sys_menu', 1202511950502637573, 'name', '刪除', 'zh-TW');
INSERT INTO `sys_language`(`id`, `table_name`, `table_id`, `field_name`, `field_value`, `language`) VALUES (1202511950502637590, 'sys_menu', 1202511950502637574, 'name', 'Export', 'en-US');
INSERT INTO `sys_language`(`id`, `table_name`, `table_id`, `field_name`, `field_value`, `language`) VALUES (1202511950502637591, 'sys_menu', 1202511950502637574, 'name', '导出', 'zh-CN');
INSERT INTO `sys_language`(`id`, `table_name`, `table_id`, `field_name`, `field_value`, `language`) VALUES (1202511950502637592, 'sys_menu', 1202511950502637574, 'name', '導出', 'zh-TW');
INSERT INTO `sys_language`(`id`, `table_name`, `table_id`, `field_name`, `field_value`, `language`) VALUES (1245621869050245122, 'sys_menu', 1245621866734989315, 'name', 'View', 'en-US');
INSERT INTO `sys_language`(`id`, `table_name`, `table_id`, `field_name`, `field_value`, `language`) VALUES (1245621869301903361, 'sys_menu', 1245621866734989315, 'name', '查看', 'zh-CN');
INSERT INTO `sys_language`(`id`, `table_name`, `table_id`, `field_name`, `field_value`, `language`) VALUES (1245621869419343874, 'sys_menu', 1245621866734989315, 'name', '查看', 'zh-TW');
INSERT INTO `sys_language`(`id`, `table_name`, `table_id`, `field_name`, `field_value`, `language`) VALUES (1245621869691973633, 'sys_menu', 1245621866734989316, 'name', 'Add', 'en-US');
INSERT INTO `sys_language`(`id`, `table_name`, `table_id`, `field_name`, `field_value`, `language`) VALUES (1245621869947826177, 'sys_menu', 1245621866734989316, 'name', '新增', 'zh-CN');
INSERT INTO `sys_language`(`id`, `table_name`, `table_id`, `field_name`, `field_value`, `language`) VALUES (1245621870149152769, 'sys_menu', 1245621866734989316, 'name', '新增', 'zh-TW');
INSERT INTO `sys_language`(`id`, `table_name`, `table_id`, `field_name`, `field_value`, `language`) VALUES (1245621870321119234, 'sys_menu', 1245621866734989317, 'name', 'Edit', 'en-US');
INSERT INTO `sys_language`(`id`, `table_name`, `table_id`, `field_name`, `field_value`, `language`) VALUES (1245621870539223042, 'sys_menu', 1245621866734989317, 'name', '修改', 'zh-CN');
INSERT INTO `sys_language`(`id`, `table_name`, `table_id`, `field_name`, `field_value`, `language`) VALUES (1245621870694412289, 'sys_menu', 1245621866734989317, 'name', '修改', 'zh-TW');
INSERT INTO `sys_language`(`id`, `table_name`, `table_id`, `field_name`, `field_value`, `language`) VALUES (1245621870811852802, 'sys_menu', 1245621866734989318, 'name', 'Delete', 'en-US');
INSERT INTO `sys_language`(`id`, `table_name`, `table_id`, `field_name`, `field_value`, `language`) VALUES (1245621870983819265, 'sys_menu', 1245621866734989318, 'name', '删除', 'zh-CN');
INSERT INTO `sys_language`(`id`, `table_name`, `table_id`, `field_name`, `field_value`, `language`) VALUES (1245621871097065474, 'sys_menu', 1245621866734989318, 'name', '删除', 'zh-TW');
-- 代码工具数据字典
DELETE from sys_dict_data WHERE dict_type like 'GEN%';
DELETE from sys_dict_type WHERE dict_type like 'GEN%';
-- 字典数据
INSERT INTO `sys_dict_type`(`id`, `dict_name`, `dict_type`, `is_sys`, `status`, `creator`, `create_date`, `updater`, `update_date`, `version`, `remark`) VALUES (1186154264037232642, '代码生成-JAVA字段类型', 'GEN_JAVA_FIELD_TYPE', 1, 1, 'admin', '2019-10-21 13:36:29', 'admin', '2019-10-21 13:36:35', NULL, '');
INSERT INTO `sys_dict_type`(`id`, `dict_name`, `dict_type`, `is_sys`, `status`, `creator`, `create_date`, `updater`, `update_date`, `version`, `remark`) VALUES (1186157420804640770, '代码生成-查询字段类型', 'GEN_QUERY_TYPE', 1, 1, 'admin', '2019-10-21 13:49:02', 'admin', '2019-10-21 13:49:07', NULL, '');
INSERT INTO `sys_dict_type`(`id`, `dict_name`, `dict_type`, `is_sys`, `status`, `creator`, `create_date`, `updater`, `update_date`, `version`, `remark`) VALUES (1186159068402749442, '代码生成-字段验证方式', 'GEN_VALID_TYPE', 1, 1, 'admin', '2019-10-21 13:55:34', 'admin', '2019-10-21 13:55:34', NULL, '');
INSERT INTO `sys_dict_type`(`id`, `dict_name`, `dict_type`, `is_sys`, `status`, `creator`, `create_date`, `updater`, `update_date`, `version`, `remark`) VALUES (1186159723645308929, '代码生成-编辑字段控件类型', 'GEN_EDIT_TYPE', 1, 1, 'admin', '2019-10-21 13:58:11', 'admin', '2019-10-21 13:58:11', NULL, '');
INSERT INTO `sys_dict_type`(`id`, `dict_name`, `dict_type`, `is_sys`, `status`, `creator`, `create_date`, `updater`, `update_date`, `version`, `remark`) VALUES (1186160903486246914, '代码生成-编辑表单布局控制', 'GEN_EDIT_LAYOUT', 1, 1, 'admin', '2019-10-21 14:02:52', 'admin', '2019-10-21 14:02:57', NULL, '');
INSERT INTO `sys_dict_type`(`id`, `dict_name`, `dict_type`, `is_sys`, `status`, `creator`, `create_date`, `updater`, `update_date`, `version`, `remark`) VALUES (1186161330101489665, '代码生成-公共字段', 'GEN_COMMON_FIELD', 1, 1, 'admin', '2019-10-21 14:04:34', 'admin', '2019-10-21 14:04:34', NULL, '');
INSERT INTO `sys_dict_type`(`id`, `dict_name`, `dict_type`, `is_sys`, `status`, `creator`, `create_date`, `updater`, `update_date`, `version`, `remark`) VALUES (1186518011306156033, '代码生成-模板类型', 'GEN_TEMP_TYPE', 1, 1, 'admin', '2019-10-22 13:41:53', 'admin', '2020-04-02 16:18:52', NULL, '');
INSERT INTO `sys_dict_type`(`id`, `dict_name`, `dict_type`, `is_sys`, `status`, `creator`, `create_date`, `updater`, `update_date`, `version`, `remark`) VALUES (1186632409647452161, '代码生成--模板后台类型', 'GEN_TEMP_APP_TYPE', 1, 1, 'admin', '2019-10-22 21:16:28', 'admin', '2019-10-22 21:16:32', NULL, '');
INSERT INTO `sys_dict_type`(`id`, `dict_name`, `dict_type`, `is_sys`, `status`, `creator`, `create_date`, `updater`, `update_date`, `version`, `remark`) VALUES (1244543870771974145, '代码生成-排序方式', 'GEN_SORT_TYPE', 1, 1, 'admin', '2020-03-30 16:35:56', 'admin', '2020-03-30 16:52:44', NULL, '');
INSERT INTO `sys_dict_type`(`id`, `dict_name`, `dict_type`, `is_sys`, `status`, `creator`, `create_date`, `updater`, `update_date`, `version`, `remark`) VALUES (1244544132899196929, '代码生成-页面显示格式', 'GEN_FORMAT_TYPE', 1, 1, 'admin', '2020-03-30 16:36:58', 'admin', '2020-03-30 16:52:40', NULL, '');
INSERT INTO `sys_dict_type`(`id`, `dict_name`, `dict_type`, `is_sys`, `status`, `creator`, `create_date`, `updater`, `update_date`, `version`, `remark`) VALUES (1244544611020492801, '代码生成-列表居中格式', 'GEN_ALIGN_TYPE', 1, 1, 'admin', '2020-03-30 16:38:52', 'admin', '2020-03-30 16:52:35', NULL, '');
INSERT INTO `sys_dict_type`(`id`, `dict_name`, `dict_type`, `is_sys`, `status`, `creator`, `create_date`, `updater`, `update_date`, `version`, `remark`) VALUES (1244544812246421506, '代码生成-列表宽度列表', 'GEN_WIDTH_TYPE', 1, 1, 'admin', '2020-03-30 16:39:40', 'admin', '2020-03-30 16:52:31', NULL, '');
INSERT INTO `sys_dict_type`(`id`, `dict_name`, `dict_type`, `is_sys`, `status`, `creator`, `create_date`, `updater`, `update_date`, `version`, `remark`) VALUES (1244545452192354305, '代码生成-列表合计列格式', 'GEN_TOTAL_TYPE', 1, 1, 'admin', '2020-03-30 16:42:13', 'admin', '2020-03-30 16:52:26', NULL, '');

-- 字典值
INSERT INTO `sys_dict_data`(`id`, `pid`, `pids`, `sort`, `is_leaf`, `level`, `pnames`, `dict_label`, `dict_value`, `dict_type`, `remark`, `status`, `creator`, `create_date`, `updater`, `update_date`, `version`) VALUES (1186154368236326914, 1186154264037232642, '', 0, 0, 0, NULL, 'String', 'String', 'GEN_JAVA_FIELD_TYPE', '', 1, 'admin', '2019-10-21 13:36:54', 'admin', '2019-10-21 13:36:54', 0);
INSERT INTO `sys_dict_data`(`id`, `pid`, `pids`, `sort`, `is_leaf`, `level`, `pnames`, `dict_label`, `dict_value`, `dict_type`, `remark`, `status`, `creator`, `create_date`, `updater`, `update_date`, `version`) VALUES (1186154415871037442, 1186154264037232642, '', 1, 0, 0, NULL, 'Long', 'Long', 'GEN_JAVA_FIELD_TYPE', '', 1, 'admin', '2019-10-21 13:37:05', 'admin', '2019-10-21 13:37:05', 0);
INSERT INTO `sys_dict_data`(`id`, `pid`, `pids`, `sort`, `is_leaf`, `level`, `pnames`, `dict_label`, `dict_value`, `dict_type`, `remark`, `status`, `creator`, `create_date`, `updater`, `update_date`, `version`) VALUES (1186154512864317442, 1186154264037232642, '', 2, 0, 0, NULL, 'Boolean', 'Boolean', 'GEN_JAVA_FIELD_TYPE', '', 1, 'admin', '2019-10-21 13:37:28', 'admin', '2019-10-21 13:37:28', 0);
INSERT INTO `sys_dict_data`(`id`, `pid`, `pids`, `sort`, `is_leaf`, `level`, `pnames`, `dict_label`, `dict_value`, `dict_type`, `remark`, `status`, `creator`, `create_date`, `updater`, `update_date`, `version`) VALUES (1186154571517464577, 1186154264037232642, '', 3, 0, 0, NULL, 'Integer', 'Integer', 'GEN_JAVA_FIELD_TYPE', '', 1, 'admin', '2019-10-21 13:37:42', 'admin', '2019-10-21 13:37:48', 0);
INSERT INTO `sys_dict_data`(`id`, `pid`, `pids`, `sort`, `is_leaf`, `level`, `pnames`, `dict_label`, `dict_value`, `dict_type`, `remark`, `status`, `creator`, `create_date`, `updater`, `update_date`, `version`) VALUES (1186154723934277633, 1186154264037232642, '', 4, 0, 0, NULL, 'Date', 'java.util.Date', 'GEN_JAVA_FIELD_TYPE', '', 1, 'admin', '2019-10-21 13:38:19', 'admin', '2019-10-21 13:38:19', 0);
INSERT INTO `sys_dict_data`(`id`, `pid`, `pids`, `sort`, `is_leaf`, `level`, `pnames`, `dict_label`, `dict_value`, `dict_type`, `remark`, `status`, `creator`, `create_date`, `updater`, `update_date`, `version`) VALUES (1186157515356835842, 1186157420804640770, '', 0, 0, 0, NULL, '=', 'eq', 'GEN_QUERY_TYPE', '', 1, 'admin', '2019-10-21 13:49:24', 'admin', '2019-10-21 13:49:24', 0);
INSERT INTO `sys_dict_data`(`id`, `pid`, `pids`, `sort`, `is_leaf`, `level`, `pnames`, `dict_label`, `dict_value`, `dict_type`, `remark`, `status`, `creator`, `create_date`, `updater`, `update_date`, `version`) VALUES (1186157571392737281, 1186157420804640770, '', 1, 0, 0, NULL, '!=', 'ne', 'GEN_QUERY_TYPE', '', 1, 'admin', '2019-10-21 13:49:37', 'admin', '2019-10-21 13:49:37', 0);
INSERT INTO `sys_dict_data`(`id`, `pid`, `pids`, `sort`, `is_leaf`, `level`, `pnames`, `dict_label`, `dict_value`, `dict_type`, `remark`, `status`, `creator`, `create_date`, `updater`, `update_date`, `version`) VALUES (1186157853577121794, 1186157420804640770, '', 2, 0, 0, NULL, '>', 'gt', 'GEN_QUERY_TYPE', '', 1, 'admin', '2019-10-21 13:50:45', 'admin', '2019-10-21 13:50:45', 0);
INSERT INTO `sys_dict_data`(`id`, `pid`, `pids`, `sort`, `is_leaf`, `level`, `pnames`, `dict_label`, `dict_value`, `dict_type`, `remark`, `status`, `creator`, `create_date`, `updater`, `update_date`, `version`) VALUES (1186157914356781058, 1186157420804640770, '', 3, 0, 0, NULL, '>=', 'ge', 'GEN_QUERY_TYPE', '', 1, 'admin', '2019-10-21 13:50:59', 'admin', '2019-10-21 13:50:59', 0);
INSERT INTO `sys_dict_data`(`id`, `pid`, `pids`, `sort`, `is_leaf`, `level`, `pnames`, `dict_label`, `dict_value`, `dict_type`, `remark`, `status`, `creator`, `create_date`, `updater`, `update_date`, `version`) VALUES (1186157979477544961, 1186157420804640770, '', 4, 0, 0, NULL, '<', 'lt', 'GEN_QUERY_TYPE', '', 1, 'admin', '2019-10-21 13:51:15', 'admin', '2019-10-21 13:51:45', 0);
INSERT INTO `sys_dict_data`(`id`, `pid`, `pids`, `sort`, `is_leaf`, `level`, `pnames`, `dict_label`, `dict_value`, `dict_type`, `remark`, `status`, `creator`, `create_date`, `updater`, `update_date`, `version`) VALUES (1186158022574018561, 1186157420804640770, '', 5, 0, 0, NULL, '<=', 'le', 'GEN_QUERY_TYPE', '', 1, 'admin', '2019-10-21 13:51:25', 'admin', '2019-10-21 13:51:52', 0);
INSERT INTO `sys_dict_data`(`id`, `pid`, `pids`, `sort`, `is_leaf`, `level`, `pnames`, `dict_label`, `dict_value`, `dict_type`, `remark`, `status`, `creator`, `create_date`, `updater`, `update_date`, `version`) VALUES (1186158185753415681, 1186157420804640770, '', 6, 0, 0, NULL, 'like', 'like', 'GEN_QUERY_TYPE', '', 1, 'admin', '2019-10-21 13:52:04', 'admin', '2019-10-21 13:52:04', 0);
INSERT INTO `sys_dict_data`(`id`, `pid`, `pids`, `sort`, `is_leaf`, `level`, `pnames`, `dict_label`, `dict_value`, `dict_type`, `remark`, `status`, `creator`, `create_date`, `updater`, `update_date`, `version`) VALUES (1186159153039609858, 1186159068402749442, '', 0, 0, 0, NULL, '非空校验', 'required', 'GEN_VALID_TYPE', '', 1, 'admin', '2019-10-21 13:55:55', 'admin', '2019-10-21 13:55:55', 0);
INSERT INTO `sys_dict_data`(`id`, `pid`, `pids`, `sort`, `is_leaf`, `level`, `pnames`, `dict_label`, `dict_value`, `dict_type`, `remark`, `status`, `creator`, `create_date`, `updater`, `update_date`, `version`) VALUES (1186159209427832834, 1186159068402749442, '', 1, 0, 0, NULL, '邮箱格式', 'email', 'GEN_VALID_TYPE', '\n', 1, 'admin', '2019-10-21 13:56:08', 'admin', '2019-10-21 13:57:06', 0);
INSERT INTO `sys_dict_data`(`id`, `pid`, `pids`, `sort`, `is_leaf`, `level`, `pnames`, `dict_label`, `dict_value`, `dict_type`, `remark`, `status`, `creator`, `create_date`, `updater`, `update_date`, `version`) VALUES (1186159258522161154, 1186159068402749442, '', 2, 0, 0, NULL, '手机号', 'mobile', 'GEN_VALID_TYPE', '', 1, 'admin', '2019-10-21 13:56:20', 'admin', '2019-10-21 13:56:20', 0);
INSERT INTO `sys_dict_data`(`id`, `pid`, `pids`, `sort`, `is_leaf`, `level`, `pnames`, `dict_label`, `dict_value`, `dict_type`, `remark`, `status`, `creator`, `create_date`, `updater`, `update_date`, `version`) VALUES (1186159317619904514, 1186159068402749442, '', 3, 0, 0, NULL, '电话号码', 'phone', 'GEN_VALID_TYPE', '', 1, 'admin', '2019-10-21 13:56:34', 'admin', '2019-10-21 13:56:34', 0);
INSERT INTO `sys_dict_data`(`id`, `pid`, `pids`, `sort`, `is_leaf`, `level`, `pnames`, `dict_label`, `dict_value`, `dict_type`, `remark`, `status`, `creator`, `create_date`, `updater`, `update_date`, `version`) VALUES (1186159368425508866, 1186159068402749442, '', 4, 0, 0, NULL, 'URL网址', 'url', 'GEN_VALID_TYPE', '', 1, 'admin', '2019-10-21 13:56:46', 'admin', '2019-10-21 13:56:46', 0);
INSERT INTO `sys_dict_data`(`id`, `pid`, `pids`, `sort`, `is_leaf`, `level`, `pnames`, `dict_label`, `dict_value`, `dict_type`, `remark`, `status`, `creator`, `create_date`, `updater`, `update_date`, `version`) VALUES (1186159428290809858, 1186159068402749442, '', 5, 0, 0, NULL, '纯数字', 'num', 'GEN_VALID_TYPE', '', 1, 'admin', '2019-10-21 13:57:00', 'admin', '2019-10-21 13:57:00', 0);
INSERT INTO `sys_dict_data`(`id`, `pid`, `pids`, `sort`, `is_leaf`, `level`, `pnames`, `dict_label`, `dict_value`, `dict_type`, `remark`, `status`, `creator`, `create_date`, `updater`, `update_date`, `version`) VALUES (1186159818088452097, 1186159723645308929, '', 0, 0, 0, NULL, '单行文本框', 'input', 'GEN_EDIT_TYPE', '', 1, 'admin', '2019-10-21 13:58:33', 'admin', '2019-10-21 13:58:33', 0);
INSERT INTO `sys_dict_data`(`id`, `pid`, `pids`, `sort`, `is_leaf`, `level`, `pnames`, `dict_label`, `dict_value`, `dict_type`, `remark`, `status`, `creator`, `create_date`, `updater`, `update_date`, `version`) VALUES (1186159873067388929, 1186159723645308929, '', 1, 0, 0, NULL, '计数框', 'number', 'GEN_EDIT_TYPE', '', 1, 'admin', '2019-10-21 13:58:46', 'admin', '2019-10-21 13:58:46', 0);
INSERT INTO `sys_dict_data`(`id`, `pid`, `pids`, `sort`, `is_leaf`, `level`, `pnames`, `dict_label`, `dict_value`, `dict_type`, `remark`, `status`, `creator`, `create_date`, `updater`, `update_date`, `version`) VALUES (1186159926964195330, 1186159723645308929, '', 7, 0, 0, NULL, '多行文本框', 'textarea', 'GEN_EDIT_TYPE', '', 1, 'admin', '2019-10-21 13:58:59', 'admin', '2019-10-21 14:01:22', 0);
INSERT INTO `sys_dict_data`(`id`, `pid`, `pids`, `sort`, `is_leaf`, `level`, `pnames`, `dict_label`, `dict_value`, `dict_type`, `remark`, `status`, `creator`, `create_date`, `updater`, `update_date`, `version`) VALUES (1186160000377098241, 1186159723645308929, '', 9, 0, 0, NULL, '隐藏文本框', 'hidden', 'GEN_EDIT_TYPE', '', 1, 'admin', '2019-10-21 13:59:17', 'admin', '2019-10-21 14:01:00', 0);
INSERT INTO `sys_dict_data`(`id`, `pid`, `pids`, `sort`, `is_leaf`, `level`, `pnames`, `dict_label`, `dict_value`, `dict_type`, `remark`, `status`, `creator`, `create_date`, `updater`, `update_date`, `version`) VALUES (1186160051241422850, 1186159723645308929, '', 2, 0, 0, NULL, '下拉控件', 'select', 'GEN_EDIT_TYPE', '', 1, 'admin', '2019-10-21 13:59:29', 'admin', '2019-10-21 14:01:39', 0);
INSERT INTO `sys_dict_data`(`id`, `pid`, `pids`, `sort`, `is_leaf`, `level`, `pnames`, `dict_label`, `dict_value`, `dict_type`, `remark`, `status`, `creator`, `create_date`, `updater`, `update_date`, `version`) VALUES (1186160103527616513, 1186159723645308929, '', 4, 0, 0, NULL, '单选控件', 'radiobox', 'GEN_EDIT_TYPE', '\n', 1, 'admin', '2019-10-21 13:59:41', 'admin', '2019-10-21 14:01:53', 0);
INSERT INTO `sys_dict_data`(`id`, `pid`, `pids`, `sort`, `is_leaf`, `level`, `pnames`, `dict_label`, `dict_value`, `dict_type`, `remark`, `status`, `creator`, `create_date`, `updater`, `update_date`, `version`) VALUES (1186160143184760833, 1186159723645308929, '', 5, 0, 0, NULL, '复选控件', 'checkbox', 'GEN_EDIT_TYPE', '', 1, 'admin', '2019-10-21 13:59:51', 'admin', '2019-10-21 14:02:07', 0);
INSERT INTO `sys_dict_data`(`id`, `pid`, `pids`, `sort`, `is_leaf`, `level`, `pnames`, `dict_label`, `dict_value`, `dict_type`, `remark`, `status`, `creator`, `create_date`, `updater`, `update_date`, `version`) VALUES (1186160177116680194, 1186159723645308929, '', 3, 0, 0, NULL, '日期控件', 'dateselect', 'GEN_EDIT_TYPE', '', 1, 'admin', '2019-10-21 13:59:59', 'admin', '2019-10-21 14:01:47', 0);
INSERT INTO `sys_dict_data`(`id`, `pid`, `pids`, `sort`, `is_leaf`, `level`, `pnames`, `dict_label`, `dict_value`, `dict_type`, `remark`, `status`, `creator`, `create_date`, `updater`, `update_date`, `version`) VALUES (1186160230682136577, 1186159723645308929, '', 10, 0, 0, NULL, '父级选择框', 'parentselect', 'GEN_EDIT_TYPE', '', 1, 'admin', '2019-10-21 14:00:11', 'admin', '2019-10-21 14:00:50', 0);
INSERT INTO `sys_dict_data`(`id`, `pid`, `pids`, `sort`, `is_leaf`, `level`, `pnames`, `dict_label`, `dict_value`, `dict_type`, `remark`, `status`, `creator`, `create_date`, `updater`, `update_date`, `version`) VALUES (1186160276920143874, 1186159723645308929, '', 8, 0, 0, NULL, '富文本编辑框', 'editor', 'GEN_EDIT_TYPE', '', 1, 'admin', '2019-10-21 14:00:22', 'admin', '2019-10-21 14:01:13', 0);
INSERT INTO `sys_dict_data`(`id`, `pid`, `pids`, `sort`, `is_leaf`, `level`, `pnames`, `dict_label`, `dict_value`, `dict_type`, `remark`, `status`, `creator`, `create_date`, `updater`, `update_date`, `version`) VALUES (1186160318972235778, 1186159723645308929, '', 6, 0, 0, NULL, '开关控件', 'switch', 'GEN_EDIT_TYPE', '', 1, 'admin', '2019-10-21 14:00:32', 'admin', '2019-10-21 14:02:00', 0);
INSERT INTO `sys_dict_data`(`id`, `pid`, `pids`, `sort`, `is_leaf`, `level`, `pnames`, `dict_label`, `dict_value`, `dict_type`, `remark`, `status`, `creator`, `create_date`, `updater`, `update_date`, `version`) VALUES (1186161013813219329, 1186160903486246914, '', 1, 0, 0, NULL, '一行一栏', '24', 'GEN_EDIT_LAYOUT', '', 1, 'admin', '2019-10-21 14:03:18', 'admin', '2019-10-21 14:03:43', 0);
INSERT INTO `sys_dict_data`(`id`, `pid`, `pids`, `sort`, `is_leaf`, `level`, `pnames`, `dict_label`, `dict_value`, `dict_type`, `remark`, `status`, `creator`, `create_date`, `updater`, `update_date`, `version`) VALUES (1186161050207195137, 1186160903486246914, '', 0, 0, 0, NULL, '一行两栏', '12', 'GEN_EDIT_LAYOUT', '', 1, 'admin', '2019-10-21 14:03:27', 'admin', '2019-10-21 14:03:27', 0);
INSERT INTO `sys_dict_data`(`id`, `pid`, `pids`, `sort`, `is_leaf`, `level`, `pnames`, `dict_label`, `dict_value`, `dict_type`, `remark`, `status`, `creator`, `create_date`, `updater`, `update_date`, `version`) VALUES (1186161084646625282, 1186160903486246914, '', 2, 0, 0, NULL, '一行三栏', '8', 'GEN_EDIT_LAYOUT', '', 1, 'admin', '2019-10-21 14:03:35', 'admin', '2019-10-21 14:03:51', 0);
INSERT INTO `sys_dict_data`(`id`, `pid`, `pids`, `sort`, `is_leaf`, `level`, `pnames`, `dict_label`, `dict_value`, `dict_type`, `remark`, `status`, `creator`, `create_date`, `updater`, `update_date`, `version`) VALUES (1186161402629394433, 1186161330101489665, '', 5, 0, 0, NULL, '排序', 'sorts', 'GEN_COMMON_FIELD', '', 1, 'admin', '2019-10-21 14:04:51', 'admin', '2019-10-21 14:08:10', 0);
INSERT INTO `sys_dict_data`(`id`, `pid`, `pids`, `sort`, `is_leaf`, `level`, `pnames`, `dict_label`, `dict_value`, `dict_type`, `remark`, `status`, `creator`, `create_date`, `updater`, `update_date`, `version`) VALUES (1186161443196702722, 1186161330101489665, '', 5, 0, 0, NULL, '排序', 'sort', 'GEN_COMMON_FIELD', '', 1, 'admin', '2019-10-21 14:05:01', 'admin', '2019-10-21 14:08:16', 0);
INSERT INTO `sys_dict_data`(`id`, `pid`, `pids`, `sort`, `is_leaf`, `level`, `pnames`, `dict_label`, `dict_value`, `dict_type`, `remark`, `status`, `creator`, `create_date`, `updater`, `update_date`, `version`) VALUES (1186161489526984706, 1186161330101489665, '', 2, 0, 0, NULL, '是否有下级', 'hasNext', 'GEN_COMMON_FIELD', '', 1, 'admin', '2019-10-21 14:05:12', 'admin', '2019-10-21 14:08:32', 0);
INSERT INTO `sys_dict_data`(`id`, `pid`, `pids`, `sort`, `is_leaf`, `level`, `pnames`, `dict_label`, `dict_value`, `dict_type`, `remark`, `status`, `creator`, `create_date`, `updater`, `update_date`, `version`) VALUES (1186161554740023297, 1186161330101489665, '', 2, 0, 0, NULL, '树级别', 'treeLevel', 'GEN_COMMON_FIELD', '', 1, 'admin', '2019-10-21 14:05:27', 'admin', '2019-10-21 14:08:25', 0);
INSERT INTO `sys_dict_data`(`id`, `pid`, `pids`, `sort`, `is_leaf`, `level`, `pnames`, `dict_label`, `dict_value`, `dict_type`, `remark`, `status`, `creator`, `create_date`, `updater`, `update_date`, `version`) VALUES (1186161592690085890, 1186161330101489665, '', 1, 0, 0, NULL, '父级编码', 'parentCode', 'GEN_COMMON_FIELD', '', 1, 'admin', '2019-10-21 14:05:36', 'admin', '2019-10-21 14:07:28', 0);
INSERT INTO `sys_dict_data`(`id`, `pid`, `pids`, `sort`, `is_leaf`, `level`, `pnames`, `dict_label`, `dict_value`, `dict_type`, `remark`, `status`, `creator`, `create_date`, `updater`, `update_date`, `version`) VALUES (1186161637007101953, 1186161330101489665, '', 1, 0, 0, NULL, '所有父级编码', 'parentCodes', 'GEN_COMMON_FIELD', '', 1, 'admin', '2019-10-21 14:05:47', 'admin', '2019-10-21 14:07:19', 0);
INSERT INTO `sys_dict_data`(`id`, `pid`, `pids`, `sort`, `is_leaf`, `level`, `pnames`, `dict_label`, `dict_value`, `dict_type`, `remark`, `status`, `creator`, `create_date`, `updater`, `update_date`, `version`) VALUES (1186161684813778945, 1186161330101489665, '', 1, 0, 0, NULL, '父级ID', 'pid', 'GEN_COMMON_FIELD', '', 1, 'admin', '2019-10-21 14:05:58', 'admin', '2019-10-21 14:07:47', 0);
INSERT INTO `sys_dict_data`(`id`, `pid`, `pids`, `sort`, `is_leaf`, `level`, `pnames`, `dict_label`, `dict_value`, `dict_type`, `remark`, `status`, `creator`, `create_date`, `updater`, `update_date`, `version`) VALUES (1186161736156254210, 1186161330101489665, '', 1, 0, 0, NULL, '所有父级ID', 'pids', 'GEN_COMMON_FIELD', '', 1, 'admin', '2019-10-21 14:06:10', 'admin', '2019-10-21 14:07:36', 0);
INSERT INTO `sys_dict_data`(`id`, `pid`, `pids`, `sort`, `is_leaf`, `level`, `pnames`, `dict_label`, `dict_value`, `dict_type`, `remark`, `status`, `creator`, `create_date`, `updater`, `update_date`, `version`) VALUES (1186161767710003202, 1186161330101489665, '', 0, 0, 0, NULL, '状态', 'status', 'GEN_COMMON_FIELD', '', 1, 'admin', '2019-10-21 14:06:18', 'admin', '2019-10-21 14:06:18', 0);
INSERT INTO `sys_dict_data`(`id`, `pid`, `pids`, `sort`, `is_leaf`, `level`, `pnames`, `dict_label`, `dict_value`, `dict_type`, `remark`, `status`, `creator`, `create_date`, `updater`, `update_date`, `version`) VALUES (1186161812857491457, 1186161330101489665, '', 0, 0, 0, NULL, '创建人', 'creator', 'GEN_COMMON_FIELD', '', 1, 'admin', '2019-10-21 14:06:29', 'admin', '2019-10-21 14:06:29', 0);
INSERT INTO `sys_dict_data`(`id`, `pid`, `pids`, `sort`, `is_leaf`, `level`, `pnames`, `dict_label`, `dict_value`, `dict_type`, `remark`, `status`, `creator`, `create_date`, `updater`, `update_date`, `version`) VALUES (1186161845665337345, 1186161330101489665, '', 0, 0, 0, NULL, '创建时间', 'createDate', 'GEN_COMMON_FIELD', '', 1, 'admin', '2019-10-21 14:06:36', 'admin', '2019-10-21 14:06:36', 0);
INSERT INTO `sys_dict_data`(`id`, `pid`, `pids`, `sort`, `is_leaf`, `level`, `pnames`, `dict_label`, `dict_value`, `dict_type`, `remark`, `status`, `creator`, `create_date`, `updater`, `update_date`, `version`) VALUES (1186161876787073026, 1186161330101489665, '', 0, 0, 0, NULL, '更新人', 'updater', 'GEN_COMMON_FIELD', '', 1, 'admin', '2019-10-21 14:06:44', 'admin', '2019-10-21 14:06:44', 0);
INSERT INTO `sys_dict_data`(`id`, `pid`, `pids`, `sort`, `is_leaf`, `level`, `pnames`, `dict_label`, `dict_value`, `dict_type`, `remark`, `status`, `creator`, `create_date`, `updater`, `update_date`, `version`) VALUES (1186161910861598722, 1186161330101489665, '', 0, 0, 0, NULL, '更新时间', 'updateDate', 'GEN_COMMON_FIELD', '', 1, 'admin', '2019-10-21 14:06:52', 'admin', '2019-10-21 14:06:52', 0);
INSERT INTO `sys_dict_data`(`id`, `pid`, `pids`, `sort`, `is_leaf`, `level`, `pnames`, `dict_label`, `dict_value`, `dict_type`, `remark`, `status`, `creator`, `create_date`, `updater`, `update_date`, `version`) VALUES (1186161938166517761, 1186161330101489665, '', 4, 0, 0, NULL, '备注', 'remarks', 'GEN_COMMON_FIELD', '', 1, 'admin', '2019-10-21 14:06:59', 'admin', '2019-10-21 14:07:56', 0);
INSERT INTO `sys_dict_data`(`id`, `pid`, `pids`, `sort`, `is_leaf`, `level`, `pnames`, `dict_label`, `dict_value`, `dict_type`, `remark`, `status`, `creator`, `create_date`, `updater`, `update_date`, `version`) VALUES (1186161965215584258, 1186161330101489665, '', 4, 0, 0, NULL, '备注', 'remark', 'GEN_COMMON_FIELD', '', 1, 'admin', '2019-10-21 14:07:05', 'admin', '2019-10-21 14:08:02', 0);
INSERT INTO `sys_dict_data`(`id`, `pid`, `pids`, `sort`, `is_leaf`, `level`, `pnames`, `dict_label`, `dict_value`, `dict_type`, `remark`, `status`, `creator`, `create_date`, `updater`, `update_date`, `version`) VALUES (1186633503698096129, 1186632409647452161, '', 0, 0, 0, NULL, 'JAVA后台', 'java', 'GEN_TEMP_APP_TYPE', '', 1, 'admin', '2019-10-22 21:20:49', 'admin', '2019-10-22 21:20:49', 0);
INSERT INTO `sys_dict_data`(`id`, `pid`, `pids`, `sort`, `is_leaf`, `level`, `pnames`, `dict_label`, `dict_value`, `dict_type`, `remark`, `status`, `creator`, `create_date`, `updater`, `update_date`, `version`) VALUES (1186633541056761857, 1186632409647452161, '', 1, 0, 0, NULL, 'WEB前端', 'webui', 'GEN_TEMP_APP_TYPE', '', 1, 'admin', '2019-10-22 21:20:57', 'admin', '2019-10-22 21:21:04', 0);
INSERT INTO `sys_dict_data`(`id`, `pid`, `pids`, `sort`, `is_leaf`, `level`, `pnames`, `dict_label`, `dict_value`, `dict_type`, `remark`, `status`, `creator`, `create_date`, `updater`, `update_date`, `version`) VALUES (1186875935694094338, 1186632409647452161, '', 2, 0, 0, NULL, '国际化', 'i18n', 'GEN_TEMP_APP_TYPE', '', 1, 'admin', '2019-10-23 13:24:09', 'admin', '2019-10-23 13:24:09', 0);
INSERT INTO `sys_dict_data`(`id`, `pid`, `pids`, `sort`, `is_leaf`, `level`, `pnames`, `dict_label`, `dict_value`, `dict_type`, `remark`, `status`, `creator`, `create_date`, `updater`, `update_date`, `version`) VALUES (1199955773858369538, 1186154264037232642, '', 5, 0, 0, NULL, 'Double', 'Double', 'GEN_JAVA_FIELD_TYPE', '', 1, 'admin', '2019-11-28 15:38:45', 'admin', '2019-11-28 15:38:45', 0);
INSERT INTO `sys_dict_data`(`id`, `pid`, `pids`, `sort`, `is_leaf`, `level`, `pnames`, `dict_label`, `dict_value`, `dict_type`, `remark`, `status`, `creator`, `create_date`, `updater`, `update_date`, `version`) VALUES (1244543919388151809, 1244543870771974145, '', 0, 0, 0, NULL, '默认-无', 'default', 'GEN_SORT_TYPE', '', 1, 'admin', '2020-03-30 16:36:08', 'admin', '2020-04-06 15:17:40', 0);
INSERT INTO `sys_dict_data`(`id`, `pid`, `pids`, `sort`, `is_leaf`, `level`, `pnames`, `dict_label`, `dict_value`, `dict_type`, `remark`, `status`, `creator`, `create_date`, `updater`, `update_date`, `version`) VALUES (1244544235651256322, 1244544132899196929, '', 0, 0, 0, NULL, '默认', 'default', 'GEN_FORMAT_TYPE', '', 1, 'admin', '2020-03-30 16:37:23', 'admin', '2020-03-30 17:30:19', 0);
INSERT INTO `sys_dict_data`(`id`, `pid`, `pids`, `sort`, `is_leaf`, `level`, `pnames`, `dict_label`, `dict_value`, `dict_type`, `remark`, `status`, `creator`, `create_date`, `updater`, `update_date`, `version`) VALUES (1244544277070008322, 1244544132899196929, '', 1, 0, 0, NULL, '金额', 'amount', 'GEN_FORMAT_TYPE', '', 1, 'admin', '2020-03-30 16:37:33', 'admin', '2020-03-30 17:30:03', 0);
INSERT INTO `sys_dict_data`(`id`, `pid`, `pids`, `sort`, `is_leaf`, `level`, `pnames`, `dict_label`, `dict_value`, `dict_type`, `remark`, `status`, `creator`, `create_date`, `updater`, `update_date`, `version`) VALUES (1244544298486124546, 1244544132899196929, '', 2, 0, 0, NULL, '单价', 'price', 'GEN_FORMAT_TYPE', '', 1, 'admin', '2020-03-30 16:37:38', 'admin', '2020-03-30 17:29:54', 0);
INSERT INTO `sys_dict_data`(`id`, `pid`, `pids`, `sort`, `is_leaf`, `level`, `pnames`, `dict_label`, `dict_value`, `dict_type`, `remark`, `status`, `creator`, `create_date`, `updater`, `update_date`, `version`) VALUES (1244544338864689153, 1244544132899196929, '', 3, 0, 0, NULL, '数字', 'int', 'GEN_FORMAT_TYPE', '', 1, 'admin', '2020-03-30 16:37:48', 'admin', '2020-03-30 17:29:47', 0);
INSERT INTO `sys_dict_data`(`id`, `pid`, `pids`, `sort`, `is_leaf`, `level`, `pnames`, `dict_label`, `dict_value`, `dict_type`, `remark`, `status`, `creator`, `create_date`, `updater`, `update_date`, `version`) VALUES (1244544371890638849, 1244544132899196929, '', 4, 0, 0, NULL, '日期', 'date', 'GEN_FORMAT_TYPE', '', 1, 'admin', '2020-03-30 16:37:55', 'admin', '2020-03-30 17:29:21', 0);
INSERT INTO `sys_dict_data`(`id`, `pid`, `pids`, `sort`, `is_leaf`, `level`, `pnames`, `dict_label`, `dict_value`, `dict_type`, `remark`, `status`, `creator`, `create_date`, `updater`, `update_date`, `version`) VALUES (1244544392769884162, 1244544132899196929, '', 5, 0, 0, NULL, '标记', 'flag', 'GEN_FORMAT_TYPE', '', 1, 'admin', '2020-03-30 16:38:00', 'admin', '2020-03-30 17:29:33', 0);
INSERT INTO `sys_dict_data`(`id`, `pid`, `pids`, `sort`, `is_leaf`, `level`, `pnames`, `dict_label`, `dict_value`, `dict_type`, `remark`, `status`, `creator`, `create_date`, `updater`, `update_date`, `version`) VALUES (1244544430908690434, 1244544132899196929, '', 6, 0, 0, NULL, '字典', 'dict', 'GEN_FORMAT_TYPE', '', 1, 'admin', '2020-03-30 16:38:10', 'admin', '2020-03-30 17:29:40', 0);
INSERT INTO `sys_dict_data`(`id`, `pid`, `pids`, `sort`, `is_leaf`, `level`, `pnames`, `dict_label`, `dict_value`, `dict_type`, `remark`, `status`, `creator`, `create_date`, `updater`, `update_date`, `version`) VALUES (1244544652544102402, 1244544611020492801, '', 3, 0, 0, NULL, '居左', 'left', 'GEN_ALIGN_TYPE', '', 1, 'admin', '2020-03-30 16:39:02', 'admin', '2020-04-06 15:16:19', 0);
INSERT INTO `sys_dict_data`(`id`, `pid`, `pids`, `sort`, `is_leaf`, `level`, `pnames`, `dict_label`, `dict_value`, `dict_type`, `remark`, `status`, `creator`, `create_date`, `updater`, `update_date`, `version`) VALUES (1244544673746309122, 1244544611020492801, '', 1, 0, 0, NULL, '居中', 'center', 'GEN_ALIGN_TYPE', '', 1, 'admin', '2020-03-30 16:39:07', 'admin', '2020-03-30 17:31:34', 0);
INSERT INTO `sys_dict_data`(`id`, `pid`, `pids`, `sort`, `is_leaf`, `level`, `pnames`, `dict_label`, `dict_value`, `dict_type`, `remark`, `status`, `creator`, `create_date`, `updater`, `update_date`, `version`) VALUES (1244544705673351169, 1244544611020492801, '', 2, 0, 0, NULL, '居右', 'right', 'GEN_ALIGN_TYPE', '', 1, 'admin', '2020-03-30 16:39:15', 'admin', '2020-03-30 17:31:39', 0);
INSERT INTO `sys_dict_data`(`id`, `pid`, `pids`, `sort`, `is_leaf`, `level`, `pnames`, `dict_label`, `dict_value`, `dict_type`, `remark`, `status`, `creator`, `create_date`, `updater`, `update_date`, `version`) VALUES (1244544839597477890, 1244544812246421506, '', 0, 0, 0, NULL, '默认', 'default', 'GEN_WIDTH_TYPE', '', 1, 'admin', '2020-03-30 16:39:47', 'admin', '2020-03-30 17:31:55', 0);
INSERT INTO `sys_dict_data`(`id`, `pid`, `pids`, `sort`, `is_leaf`, `level`, `pnames`, `dict_label`, `dict_value`, `dict_type`, `remark`, `status`, `creator`, `create_date`, `updater`, `update_date`, `version`) VALUES (1244544932237070337, 1244544812246421506, '', 5, 0, 0, NULL, '100', '100', 'GEN_WIDTH_TYPE', '', 1, 'admin', '2020-03-30 16:40:09', 'admin', '2020-03-30 16:40:33', 0);
INSERT INTO `sys_dict_data`(`id`, `pid`, `pids`, `sort`, `is_leaf`, `level`, `pnames`, `dict_label`, `dict_value`, `dict_type`, `remark`, `status`, `creator`, `create_date`, `updater`, `update_date`, `version`) VALUES (1244544954269749250, 1244544812246421506, '', 2, 0, 0, NULL, '150', '150', 'GEN_WIDTH_TYPE', '', 1, 'admin', '2020-03-30 16:40:14', 'admin', '2020-03-30 16:40:14', 0);
INSERT INTO `sys_dict_data`(`id`, `pid`, `pids`, `sort`, `is_leaf`, `level`, `pnames`, `dict_label`, `dict_value`, `dict_type`, `remark`, `status`, `creator`, `create_date`, `updater`, `update_date`, `version`) VALUES (1244544972959567874, 1244544812246421506, '', 3, 0, 0, NULL, '120', '120', 'GEN_WIDTH_TYPE', '', 1, 'admin', '2020-03-30 16:40:19', 'admin', '2020-03-30 16:40:19', 0);
INSERT INTO `sys_dict_data`(`id`, `pid`, `pids`, `sort`, `is_leaf`, `level`, `pnames`, `dict_label`, `dict_value`, `dict_type`, `remark`, `status`, `creator`, `create_date`, `updater`, `update_date`, `version`) VALUES (1244544994480541698, 1244544812246421506, '', 5, 0, 0, NULL, '80', '80', 'GEN_WIDTH_TYPE', '', 1, 'admin', '2020-03-30 16:40:24', 'admin', '2020-03-30 16:40:41', 0);
INSERT INTO `sys_dict_data`(`id`, `pid`, `pids`, `sort`, `is_leaf`, `level`, `pnames`, `dict_label`, `dict_value`, `dict_type`, `remark`, `status`, `creator`, `create_date`, `updater`, `update_date`, `version`) VALUES (1244545109878427649, 1244544812246421506, '', 1, 0, 0, NULL, '200', '200', 'GEN_WIDTH_TYPE', '', 1, 'admin', '2020-03-30 16:40:51', 'admin', '2020-03-30 16:40:51', 0);
INSERT INTO `sys_dict_data`(`id`, `pid`, `pids`, `sort`, `is_leaf`, `level`, `pnames`, `dict_label`, `dict_value`, `dict_type`, `remark`, `status`, `creator`, `create_date`, `updater`, `update_date`, `version`) VALUES (1244558030436048898, 1244545452192354305, '', 0, 0, 0, NULL, '默认', 'default', 'GEN_TOTAL_TYPE', '', 1, 'admin', '2020-03-30 17:32:12', 'admin', '2020-03-30 17:32:21', 0);
INSERT INTO `sys_dict_data`(`id`, `pid`, `pids`, `sort`, `is_leaf`, `level`, `pnames`, `dict_label`, `dict_value`, `dict_type`, `remark`, `status`, `creator`, `create_date`, `updater`, `update_date`, `version`) VALUES (1245626625714823169, 1186518011306156033, '', 0, 0, 0, NULL, '单表代码模板', 'single', 'GEN_TEMP_TYPE', '', 1, 'admin', '2020-04-02 16:18:25', 'admin', '2020-04-02 16:19:18', 0);
INSERT INTO `sys_dict_data`(`id`, `pid`, `pids`, `sort`, `is_leaf`, `level`, `pnames`, `dict_label`, `dict_value`, `dict_type`, `remark`, `status`, `creator`, `create_date`, `updater`, `update_date`, `version`) VALUES (1245626817264492546, 1186518011306156033, '', 1, 0, 0, NULL, '父子表代码模板', 'parent', 'GEN_TEMP_TYPE', '', 1, 'admin', '2020-04-02 16:19:11', 'admin', '2020-04-02 16:19:24', 0);
INSERT INTO `sys_dict_data`(`id`, `pid`, `pids`, `sort`, `is_leaf`, `level`, `pnames`, `dict_label`, `dict_value`, `dict_type`, `remark`, `status`, `creator`, `create_date`, `updater`, `update_date`, `version`) VALUES (1246016796675313666, 1244545452192354305, '', 1, 0, 0, NULL, '合计', 'sum', 'GEN_TOTAL_TYPE', '', 1, 'admin', '2020-04-03 18:08:49', 'admin', '2020-04-03 18:08:49', 0);
INSERT INTO `sys_dict_data`(`id`, `pid`, `pids`, `sort`, `is_leaf`, `level`, `pnames`, `dict_label`, `dict_value`, `dict_type`, `remark`, `status`, `creator`, `create_date`, `updater`, `update_date`, `version`) VALUES (1246016839645958146, 1244545452192354305, '', 2, 0, 0, NULL, '平均值', 'avg', 'GEN_TOTAL_TYPE', '', 1, 'admin', '2020-04-03 18:08:59', 'admin', '2020-04-03 18:08:59', 0);
INSERT INTO `sys_dict_data`(`id`, `pid`, `pids`, `sort`, `is_leaf`, `level`, `pnames`, `dict_label`, `dict_value`, `dict_type`, `remark`, `status`, `creator`, `create_date`, `updater`, `update_date`, `version`) VALUES (1247060434159144961, 1244544611020492801, '', 0, 0, 0, NULL, '默认-无', 'default', 'GEN_ALIGN_TYPE', '', 1, 'admin', '2020-04-06 15:15:51', 'admin', '2020-04-06 15:19:20', 0);
INSERT INTO `sys_dict_data`(`id`, `pid`, `pids`, `sort`, `is_leaf`, `level`, `pnames`, `dict_label`, `dict_value`, `dict_type`, `remark`, `status`, `creator`, `create_date`, `updater`, `update_date`, `version`) VALUES (1247060938159296514, 1244543870771974145, '', 1, 0, 0, NULL, '有排序', 'true', 'GEN_SORT_TYPE', '', 1, 'admin', '2020-04-06 15:17:52', 'admin', '2020-04-06 15:17:52', 0);


/*
 Navicat Premium Data Transfer

 Source Server         : 47.105.158.68-Ecode
 Source Server Type    : MySQL
 Source Server Version : 50723
 Source Host           : 47.105.158.68:3306
 Source Schema         : uniedp_dev

 Target Server Type    : MySQL
 Target Server Version : 50723
 File Encoding         : 65001

 Date: 09/04/2020 15:21:38
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for gen_code_snippet
-- ----------------------------
DROP TABLE IF EXISTS `gen_code_snippet`;
CREATE TABLE `gen_code_snippet` (
  `id` bigint(20) NOT NULL COMMENT '主键',
  `snippet_code` varchar(64) NOT NULL COMMENT '片段编码',
  `snippet_name` varchar(256) NOT NULL COMMENT '片段名称',
  `snippet_type` varchar(64) NOT NULL COMMENT '片段类型',
  `snippet_content` text NOT NULL COMMENT '片段内容',
  `snippet_desc` varchar(256) DEFAULT NULL COMMENT '片段描述',
  `creator` varchar(64) DEFAULT NULL COMMENT '创建者',
  `create_date` datetime NOT NULL COMMENT '创建时间',
  `updater` varchar(64) DEFAULT NULL COMMENT '更新者',
  `update_date` datetime NOT NULL COMMENT '更新时间',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE KEY `uq_snippet_code` (`snippet_code`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='代码片段列表';

-- ----------------------------
-- Records of gen_code_snippet
-- ----------------------------
BEGIN;
INSERT INTO `gen_code_snippet` VALUES (1193813315336351746, 'ui_query_form_i18n', '公共查询工具条_国际化', 'webui', '<el-collapse-transition>\n    <el-form ref=\"query\" v-if=\"searchShow\" :inline=\"true\" :model=\"dataForm\" @keyup.enter.native=\"getDataList()\">\n      <#list queryColList as c>\n        <#if fieldMap[c.javaField]?? >\n            <#assign fieldName = \"$t(\'common.${c.javaField}\')\">\n        <#else>\n            <#assign fieldName = \"$t(\'${className}.${c.javaField}\')\">\n        </#if>\n        <!--${c.comments}  -->\n        <#if c.showType==\'select\' >\n            <!--下拉框-->\n            <el-form-item>\n              <el-select v-model=\"dataForm.${c.javaField}\" :placeholder=\"${fieldName}\" clearable>\n                <#if c.dictType?? && c.dictType !=\'\' >\n                    <el-option v-for=\"template in $getDictList(\'${c.dictType}\', true)\"\n                    :key=\"template.val\"\n                    :label=\"template.label\"\n                    :value=\"template.val\"></el-option>\n                </#if>\n              </el-select>\n            </el-form-item>\n        <#elseif c.showType==\'dateselect\' >\n            <!--日期框-->\n            <el-form-item>\n              <el-date-picker v-model=\"dataForm.${c.javaField}\"\n              :placeholder=\"${fieldName}\" type=\"date\" ></el-date-picker>\n            </el-form-item>\n        <#else>\n            <!--文本框-->\n            <el-form-item>\n              <el-input v-model=\"dataForm.${c.javaField}\"\n              :placeholder=\"${fieldName}\" clearable></el-input>\n            </el-form-item>\n        </#if>\n      </#list>\n      <el-form-item>\n        <el-button type=\"primary\" @click=\"getDataList()\">{{ $t(\'query\') }}</el-button>\n        <el-button @click=\"searchReset()\">{{ $t(\'reset\') }}</el-button>\n      </el-form-item>\n    </el-form>\n</el-collapse-transition>', '前台列表公共查询', 'admin', '2019-11-11 16:50:49', 'admin', '2020-04-07 09:28:51');
INSERT INTO `gen_code_snippet` VALUES (1193814138111995906, 'ui_query_form', '公共查询工具条-无国际化', 'webui', '<el-collapse-transition>\n    <el-form ref=\"query\" v-if=\"searchShow\" :inline=\"true\" :model=\"dataForm\" @keyup.enter.native=\"getDataList()\">\n      <#list queryColList as c>\n        <#if c.showType==\'select\' >\n            <!--下拉框-->\n            <el-form-item>\n              <el-select v-model=\"dataForm.${c.javaField}\" placeholder=\"${c.comments}\" clearable>\n                <#if c.dictType?? && c.dictType !=\'\' >\n                    <el-option v-for=\"template in $getDictList(\'${c.dictType}\', true)\"\n                    :key=\"template.val\"\n                    :label=\"template.label\"\n                    :value=\"template.val\"></el-option>\n                </#if>\n              </el-select>\n            </el-form-item>\n        <#elseif c.showType==\'dateselect\' >\n            <!--日期框-->\n            <el-form-item>\n              <el-date-picker v-model=\"dataForm.${c.javaField}\"\n              placeholder=\"${c.comments}\" type=\"date\" ></el-date-picker>\n            </el-form-item>\n        <#else>\n            <!--文本框-->\n            <el-form-item>\n              <el-input v-model=\"dataForm.${c.javaField}\"\n              placeholder=\"${c.comments}\" clearable></el-input>\n            </el-form-item>\n        </#if>\n      </#list>\n      <el-form-item>\n        <el-button type=\"primary\" @click=\"getDataList()\">{{ $t(\'query\') }}</el-button>\n        <el-button @click=\"searchReset()\">{{ $t(\'reset\') }}</el-button>\n      </el-form-item>\n    </el-form>\n</el-collapse-transition>', '前台列表公共查询', 'admin', '2019-11-11 16:54:05', 'admin', '2020-04-07 09:29:09');
INSERT INTO `gen_code_snippet` VALUES (1194432115307986946, 'tablelist', '带工具条的列表无国际化', 'webui', '<vxe-toolbar :custom=\"{immediate:true}\">\n  <template v-slot:buttons>\n    <el-button v-if=\"$hasPermission(\'${moduleName}:${className}:save\')\" type=\"primary\" @click=\"addOrUpdateHandle()\">{{ $t(\'add\') }}</el-button>\n    <el-button v-if=\"$hasPermission(\'${moduleName}:${className}:delete\')\" type=\"danger\" @click=\"deleteHandle()\">{{ $t(\'deleteBatch\') }}</el-button>\n  </template>\n  <template v-slot:tools>\n    <el-button icon=\"el-icon-search\" @click=\"searchShowHandle()\" circle></el-button>\n    <el-button icon=\"el-icon-refresh\" @click=\"getDataList()\" circle></el-button>\n    <el-button icon=\"el-icon-download\" @click=\"exportHandle()\" circle></el-button>\n  </template>\n</vxe-toolbar>\n <#if !table.headLock>\n     <!--  锁定表头设置   :height=\"this.tableHeight\" -->\n</#if>\n<vxe-table ref=\"xTable\"\n           :loading=\"dataListLoading\"\n           class=\"vxe-table-element\"\n           <#if table.headLock>\n           :height=\"this.tableHeight\"\n           </#if>\n           auto-resize\n           <#if totalFlag>\n           show-footer\n           :footer-method=\"footerMethod\"\n            </#if>\n           :sort-config=\"{trigger:\'cell\'}\"\n           @sort-change=\"sortChange\"\n           @select-change=\"dataListSelectionChangeHandleVex\"\n           @select-all=\"dataListSelectionAllChangeHandleVex\"\n           :data=\"dataList\">\n  <vxe-table-column type=\"checkbox\" align=\"center\" width=\"60\"></vxe-table-column>\n <#list listColList as c>\n    <vxe-table-column field=\"${c.javaField}\" title=\"${c.comments}\" <#if c.sortType != \'default\'>sortable remote-sort :sort-by=\"\'${c.columnName}\'\"</#if>  <#if c.widthType != \'default\'> width=\"${c.widthType}\"</#if> <#if c.alignType != \'default\'> align=\"${c.alignType}\"</#if> >\n        <#if c.dictType?? && c.dictType !=\'\' >\n             <template slot-scope=\"scope\">\n                {{$getDictLabel(\'${c.dictType}\', scope.row.${c.javaField})}}\n             </template>\n        </#if>\n    </vxe-table-column>\n  </#list>\n  <vxe-table-column title=\"handle\" width=\"120\" show-overflow=\"false\" fixed=\"right\" align=\"center\" >\n    <template slot-scope=\"scope\">\n     <el-button v-if=\"$hasPermission(\'${moduleName}:${className}:update\')\" type=\"text\" size=\"small\" icon=\"el-icon-edit\"  @click=\"addOrUpdateHandle(scope.row)\">{{ $t(\'update\') }}</el-button>\n      <el-button v-if=\"$hasPermission(\'${moduleName}:${className}:delete\')\" type=\"text\" size=\"small\" icon=\"el-icon-delete\" @click=\"deleteHandle(scope.row.id)\">{{ $t(\'delete\') }}</el-button>\n    </template>\n  </vxe-table-column>\n</vxe-table>\n<el-pagination\n  :current-page=\"page\"\n  :page-sizes=\"pageSizes\"\n  :page-size=\"limit\"\n  :total=\"total\"\n  layout=\"total, sizes, prev, pager, next, jumper\"\n  @size-change=\"pageSizeChangeHandle\"\n  @current-change=\"pageCurrentChangeHandle\">\n</el-pagination>', '', 'admin', '2019-11-13 09:49:42', 'admin', '2020-04-08 15:37:03');
INSERT INTO `gen_code_snippet` VALUES (1194446721036337153, 'tablelist_i18n', '带工具条的列表有国际化', 'webui', '<vxe-toolbar :custom=\"{immediate:true}\" >\n  <template v-slot:buttons>\n    <el-button v-if=\"$hasPermission(\'${moduleName}:${className}:save\')\" type=\"primary\" @click=\"addOrUpdateHandle()\">{{ $t(\'add\') }}</el-button>\n    <el-button v-if=\"$hasPermission(\'${moduleName}:${className}:delete\')\" type=\"danger\" @click=\"deleteHandle()\">{{ $t(\'deleteBatch\') }}</el-button>\n  </template>\n  <template v-slot:tools>\n    <el-button icon=\"el-icon-search\" @click=\"searchShowHandle()\" circle></el-button>\n    <el-button icon=\"el-icon-refresh\" @click=\"getDataList()\" circle></el-button>\n    <el-button icon=\"el-icon-download\" @click=\"exportHandle()\" circle></el-button>\n  </template>\n</vxe-toolbar>\n <#if !table.headLock>\n     <!--  锁定表头设置   :height=\"this.tableHeight\" -->\n</#if>\n<vxe-table ref=\"xTable\"\n           :loading=\"dataListLoading\"\n           class=\"vxe-table-element\"\n           auto-resize\n           <#if totalFlag>\n           show-footer\n           :footer-method=\"footerMethod\"\n            </#if>\n           <#if table.headLock>\n           :height=\"this.tableHeight\"\n           </#if>\n           :sort-config=\"{trigger:\'cell\'}\"\n           @sort-change=\"sortChange\"\n           @select-change=\"dataListSelectionChangeHandleVex\"\n           @select-all=\"dataListSelectionAllChangeHandleVex\"\n           :data=\"dataList\">\n  <vxe-table-column type=\"checkbox\" align=\"center\"  width=\"60\"></vxe-table-column>\n <#list listColList as c>\n    <#if fieldMap[c.javaField]?? >\n        <#assign fieldName = \"common.${c.javaField}\">\n    <#else>\n        <#assign fieldName = \"${className}.${c.javaField}\">\n    </#if>\n   <!--${c.comments}  -->\n    <vxe-table-column field=\"${c.javaField}\" title=\"${fieldName}\"  <#if c.sortType != \'default\'>sortable remote-sort :sort-by=\"\'${c.columnName}\'\"</#if>  <#if c.widthType != \'default\'> width=\"${c.widthType}\"</#if> <#if c.alignType != \'default\'> align=\"${c.alignType}\"</#if> <#if table.columnLocks??&&table.columnLocks?seq_contains(c.javaField)> fixed=\"left\" </#if>  >\n        <#if c.dictType?? && c.dictType !=\'\' >\n             <template slot-scope=\"scope\">\n                {{$getDictLabel(\'${c.dictType}\', scope.row.${c.javaField})}}\n             </template>\n        </#if>\n    </vxe-table-column>\n  </#list>\n  <vxe-table-column title=\"handle\" align=\"center\" show-overflow=\"false\" width=\"120\" fixed=\"right\" >\n    <template slot-scope=\"scope\">\n       <el-button v-if=\"$hasPermission(\'${moduleName}:${className}:update\')\" type=\"text\" size=\"small\" icon=\"el-icon-edit\"  @click=\"addOrUpdateHandle(scope.row)\">{{ $t(\'update\') }}</el-button>\n      <el-button v-if=\"$hasPermission(\'${moduleName}:${className}:delete\')\" type=\"text\" size=\"small\" icon=\"el-icon-delete\" @click=\"deleteHandle(scope.row.id)\">{{ $t(\'delete\') }}</el-button>\n    </template>\n  </vxe-table-column>\n</vxe-table>\n<el-pagination\n  :current-page=\"page\"\n  :page-sizes=\"pageSizes\"\n  :page-size=\"limit\"\n  :total=\"total\"\n  layout=\"total, sizes, prev, pager, next, jumper\"\n  @size-change=\"pageSizeChangeHandle\"\n  @current-change=\"pageCurrentChangeHandle\">\n</el-pagination>', '', 'admin', '2019-11-13 10:47:45', 'admin', '2020-04-08 15:36:52');
INSERT INTO `gen_code_snippet` VALUES (1194448133921193986, 'edit_form', '编辑表单无国际化', 'webui', '<el-form v-loading=\"loading\" :model=\"dataForm\" :rules=\"dataRule\" ref=\"dataForm\" :label-width=\"$i18n.locale === \'en-US\' ? \'120px\' : \'120px\'\">\r\n<#list editColList as c>\r\n  <#assign fieldName = c.comments >\r\n  <el-col :span=\"${c.optionsLayout}\">\r\n    <!-- ${c.comments} -->\r\n    <el-form-item label=\"${fieldName}\"\r\n        <#if c.showType==\'select\' >\r\n             prop=\"${c.javaField}\">\r\n            <!--下拉框-->\r\n            <el-select v-model=\"dataForm.${c.javaField}\" placeholder=\"${fieldName}\" clearable>\r\n                <#if c.dictType?? && c.dictType !=\'\' >\r\n                    <el-option v-for=\"template in $getDictList(\'${c.dictType}\', true)\"\r\n                    :key=\"template.val\"\r\n                    :label=\"template.label\"\r\n                    :value=\"template.val\"></el-option>\r\n                </#if>\r\n            </el-select>\r\n        <#elseif c.showType==\'parentselect\' >\r\n              >\r\n            <!--父级选择框-->\r\n            <el-tree-select v-model=\"dataForm.${c.javaField}\" ref=\"parentTree\" \r\n              :data=\"parentTreeData\" />\r\n        <#elseif c.showType==\'dateselect\' >\r\n             prop=\"${c.javaField}\">\r\n            <!--日期框-->\r\n            <el-date-picker v-model=\"dataForm.${c.javaField}\" value-format=\"yyyy-MM-dd HH:mm:ss\"\r\n            placeholder=\"${fieldName}\" type=\"date\" ></el-date-picker>\r\n        <#elseif c.showType==\'textarea\' >\r\n             prop=\"${c.javaField}\">\r\n            <!--文本域-->\r\n            <el-input type=\"textarea\" :rows=\"3\" v-model=\"dataForm.${c.javaField}\"\r\n            placeholder=\"${fieldName}\"  ></el-input>\r\n        <#elseif c.showType==\'radiobox\' >\r\n             prop=\"${c.javaField}\">\r\n            <!--单选框-->\r\n            <#if c.dictType?? && c.dictType !=\'\' >\r\n                <el-radio-group v-model=\"dataForm.${c.javaField}\">\r\n                    <el-radio v-for=\"template in $getDictList(\'${c.dictType}\', true)\"\r\n                    :key=\"template.val\" :label=\"template.val\" >{{template.label}}</el-radio>\r\n                </el-radio-group>\r\n            <#else>\r\n                 <el-radio v-model=\"dataForm.${c.javaField}\" label=\"-1\">未知</el-radio>\r\n            </#if>\r\n        <#elseif c.showType==\'checkbox\' >\r\n             prop=\"${c.javaField}\">\r\n            <!--复选框-->\r\n            <#if c.dictType?? && c.dictType !=\'\' >\r\n                <<el-checkbox-group v-model=\"dataForm.${c.javaField}\">\r\n                    <el-checkbox v-for=\"template in $getDictList(\'${c.dictType}\', true)\"\r\n                    :label=\"template.val\" :key=\"template.val\">{{template.label}}</el-checkbox>\r\n                </el-checkbox-group>\r\n            <#else>\r\n                 <el-checkbox v-model=\"dataForm.${c.javaField}\" >未知</el-checkbox>\r\n            </#if>\r\n        <#elseif c.showType==\'editor\' >\r\n             prop=\"${c.javaField}\">\r\n            <!--富文本-->\r\n            <uni-editor v-model=\"dataForm.${c.javaField}\"></uni-editor>\r\n        <#elseif c.showType==\'number\' >\r\n             prop=\"${c.javaField}\">\r\n            <!--计数器-->\r\n             <el-input-number v-model=\"dataForm.${c.javaField}\" :min=\"1\" :max=\"50\" ></el-input-number>\r\n        <#else>\r\n              prop=\"${c.javaField}\">\r\n            <!--文本框-->\r\n            <el-input v-model=\"dataForm.${c.javaField}\"\r\n                placeholder=\"${fieldName}\" clearable></el-input>\r\n        </#if>\r\n    </el-form-item>\r\n  </el-col>\r\n</#list>\r\n</el-form>', '', 'admin', '2019-11-13 10:53:22', 'admin', '2019-12-04 18:54:37');
INSERT INTO `gen_code_snippet` VALUES (1194448335260368898, 'edit_form_i18n', '编辑表单有国际化', 'webui', '<el-form :model=\"dataForm\" :rules=\"dataRule\" ref=\"dataForm\" :label-width=\"$i18n.locale === \'en-US\' ? \'140px\' : \'160px\'\">\n<#list editColList as c>\n  <#if fieldMap[c.javaField]?? >\n      <#assign fieldName = \"$t(\'common.${c.javaField}\')\">\n  <#else>\n      <#assign fieldName = \"$t(\'${className}.${c.javaField}\')\">\n  </#if>\n  <el-col :span=\"${c.optionsLayout}\">\n      <!-- ${c.comments} -->\n      <el-form-item :label=\"${fieldName}\" prop=\"${c.javaField}\">\n          <#if c.showType==\'select\' >\n              <!--下拉框-->\n              <el-select v-model=\"dataForm.${c.javaField}\" :placeholder=\"${fieldName}\" clearable>\n                  <#if c.dictType?? && c.dictType !=\'\' >\n                      <el-option v-for=\"template in $getDictList(\'${c.dictType}\', true)\"\n                      :key=\"template.val\"\n                      :label=\"template.label\"\n                      :value=\"template.val\"></el-option>\n                  </#if>\n              </el-select>\n         <#elseif c.showType==\'parentselect\' >\n            <!--父级选择框-->\n            <el-tree-select v-model=\"dataForm.${c.javaField}\" ref=\"parentTree\" \n              :data=\"parentTreeData\" />\n          <#elseif c.showType==\'dateselect\' >\n              <!--日期框-->\n              <el-date-picker v-model=\"dataForm.${c.javaField}\" value-format=\"yyyy-MM-dd HH:mm:ss\"\n              :placeholder=\"${fieldName}\" type=\"date\" ></el-date-picker>\n          <#elseif c.showType==\'textarea\' >\n              <!--文本域-->\n              <el-input type=\"textarea\" :rows=\"3\" v-model=\"dataForm.${c.javaField}\"\n              :placeholder=\"${fieldName}\"  ></el-input>\n          <#elseif c.showType==\'radiobox\' >\n              <!--单选框-->\n              <#if c.dictType?? && c.dictType !=\'\' >\n                  <el-radio-group v-model=\"dataForm.${c.javaField}\">\n                      <el-radio v-for=\"template in $getDictList(\'${c.dictType}\', true)\"\n                      :key=\"template.val\" :label=\"template.val\" >{{template.label}}</el-radio>\n                  </el-radio-group>\n              <#else>\n                   <el-radio v-model=\"dataForm.${c.javaField}\" label=\"-1\">未知</el-radio>\n              </#if>\n          <#elseif c.showType==\'checkbox\' >\n              <!--复选框-->\n              <#if c.dictType?? && c.dictType !=\'\' >\n                  <el-checkbox-group v-model=\"dataForm.${c.javaField}\">\n                      <el-checkbox v-for=\"template in $getDictList(\'${c.dictType}\', true)\"\n                      :label=\"template.val\" :key=\"template.val\">{{template.label}}</el-checkbox>\n                  </el-checkbox-group>\n              <#else>\n                   <el-checkbox v-model=\"dataForm.${c.javaField}\" >未知</el-checkbox>\n              </#if>\n          <#elseif c.showType==\'editor\' >\n              <!--富文本-->\n              <uni-editor v-model=\"dataForm.${c.javaField}\"></uni-editor>\n          <#elseif c.showType==\'number\' >\n              <!--计数器-->\n               <el-input-number v-model=\"dataForm.${c.javaField}\" :min=\"1\" :max=\"50\" ></el-input-number>\n          <#else>\n              <!--文本框-->\n              <el-input v-model=\"dataForm.${c.javaField}\"\n                  :placeholder=\"${fieldName}\" clearable></el-input>\n          </#if>\n      </el-form-item>\n  </el-col>\n</#list>\n</el-form>', '', 'admin', '2019-11-13 10:54:10', 'admin', '2020-04-08 13:51:37');
INSERT INTO `gen_code_snippet` VALUES (1194452383397068801, 'edit_form_imp', '表单公共导入', 'webui', '<#if  validsImp?? && (validsImp?size &gt; 0) >\r\nimport {\r\n <#list validsImp as validImp >\r\n    ${validImp}<#if validImp_has_next>,</#if>\r\n </#list>\r\n } from \'@/utils/validate\'\r\n</#if>', '', 'admin', '2019-11-13 11:10:15', 'admin', '2019-11-13 11:11:08');
INSERT INTO `gen_code_snippet` VALUES (1194452548950441985, 'edit_form_computed', '表单公共验证', 'webui', 'computed: {\r\n    dataRule () {\r\n      return {\r\n        <#list editColList as c>\r\n			<#if  c.valids?? && (c.valids?size &gt; 0) >\r\n				${c.javaField}: [\r\n					<#list c.valids as valid>\r\n						<#if valid ==\'required\' >\r\n				 			{ required: true, message: this.$t(\'validate.required\'), trigger: \'blur\'}\r\n				 		</#if>\r\n				 		<#if valid ==\'email\' >\r\n				 		{ required : ${c.valids?seq_contains(\"required\")?string(\"true\", \"false\")}, validator: validateEmail, trigger: \'blur\' }\r\n				 		</#if>\r\n				 		<#if valid ==\'mobile\' >\r\n				 		{ required : ${c.valids?seq_contains(\"required\")?string(\"true\", \"false\")}, validator: validateMobile, trigger: \'blur\' }\r\n				 		</#if>\r\n				 		<#if valid ==\'phone\' >\r\n				 		{ required : ${c.valids?seq_contains(\"required\")?string(\"true\", \"false\")}, validator: validatePhone, trigger: \'blur\' }\r\n				 		</#if>\r\n				 		<#if valid ==\'url\' >\r\n				 		{ required : ${c.valids?seq_contains(\"required\")?string(\"true\", \"false\")}, validator: validateUrl, trigger: \'blur\' }\r\n				 		</#if>\r\n				 		<#if valid ==\'num\' >\r\n				 		{ required : ${c.valids?seq_contains(\"required\")?string(\"true\", \"false\")}, validator: validateNum, trigger: \'blur\' }\r\n				 		</#if><#if valid_has_next>,</#if>\r\n				 	</#list>\r\n				 ]<#if c_has_next>,</#if>\r\n			</#if>\r\n        </#list>\r\n      }\r\n    }\r\n  },', '', 'admin', '2019-11-13 11:10:54', 'admin', '2019-11-13 11:10:54');
INSERT INTO `gen_code_snippet` VALUES (1194453607202701314, 'edit_form_getinfo', '表单公共获取内容', 'webui', ' // 获取信息\r\n    getInfo () {\r\n      	this.$http.get(`/${moduleName}/${className}/${r\"${\"}this.dataForm.${pkField}${r\"}\"}`).then(({ data: res }) => {\r\n      	this.loading = false\r\n        if (res.code !== 0) {\r\n          return false\r\n        }\r\n        this.dataForm = {\r\n          ...this.dataForm,\r\n          ...res.data\r\n        }\r\n      }).catch(() => {})\r\n    },', '', 'admin', '2019-11-13 11:15:06', 'admin', '2019-11-13 11:15:06');
INSERT INTO `gen_code_snippet` VALUES (1196609983999918082, 'tree_tablelist', '树形列表无国际化', 'webui', '<vxe-toolbar :custom=\"{immediate:true}\">\n  <template v-slot:buttons>\n    <el-button v-if=\"$hasPermission(\'${moduleName}:${className}:save\')\" type=\"primary\" @click=\"addOrUpdateHandle()\">{{ $t(\'add\') }}</el-button>\n  <el-button @click=\"$refs.xTree.setAllTreeExpansion(true)\">{{ $t(\'openall\') }}</el-button>\n  <el-button @click=\"$refs.xTree.clearTreeExpand()\">{{ $t(\'closeall\') }}</el-button>\n  </template>\n  <template v-slot:tools>\n    <el-button icon=\"el-icon-search\" @click=\"searchShowHandle()\" circle></el-button>\n    <el-button icon=\"el-icon-refresh\" @click=\"getTreeDataList()\" circle></el-button>\n    <el-button icon=\"el-icon-download\" @click=\"$refs.xTable.openExport()\" circle></el-button>\n  </template>\n</vxe-toolbar>\n<vxe-table ref=\"xTree\"\n           :loading=\"dataListLoading\"\n           auto-resize\n            :tree-config=\"{children: \'children\',trigger:\'cell\'}\"\n           :data=\"dataList\">\n  <vxe-table-column type=\"index\" width=\"120\" align=\"left\" tree-node></vxe-table-column>\n <#list listColList as c>\n    <vxe-table-column field=\"${c.javaField}\" title=\"${c.comments}\" <#if c.widthType != \'default\'> width=\"${c.widthType}\"</#if> <#if c.alignType != \'default\'> align=\"${c.alignType}\"</#if> <#if table.columnLocks??&&table.columnLocks?seq_contains(c.javaField)> fixed=\"left\" </#if> >\n        <#if c.dictType?? && c.dictType !=\'\' >\n             <template slot-scope=\"scope\">\n                {{$getDictLabel(\'${c.dictType}\', scope.row.${c.javaField})}}\n             </template>\n        </#if>\n    </vxe-table-column>\n  </#list>\n  <vxe-table-column title=\"handle\" align=\"center\" show-overflow=\"false\" width=\"170\" fixed=\"right\" >\n    <template slot-scope=\"scope\">\n    <el-button v-if=\"$hasPermission(\'${moduleName}:${className}:save\')\" type=\"text\" size=\"small\" icon=\"el-icon-plus\" @click=\"addChild(scope.row)\">{{ $t(\'addChild\') }}</el-button>\n      <el-button v-if=\"$hasPermission(\'gen:genTableTemplate:update\')\" type=\"text\" size=\"small\" icon=\"el-icon-edit\"  @click=\"addOrUpdateHandle(scope.row)\">{{ $t(\'update\') }}</el-button>\n      <el-button v-if=\"$hasPermission(\'gen:genTableTemplate:delete\')\" type=\"text\" size=\"small\" icon=\"el-icon-delete\" @click=\"deleteHandle(scope.row.id)\">{{ $t(\'delete\') }}</el-button>\n    </template>\n  </vxe-table-column>\n</vxe-table>\n', '', 'admin', '2019-11-19 10:03:47', 'admin', '2020-04-08 13:36:11');
INSERT INTO `gen_code_snippet` VALUES (1196673365746663425, 'ui_tree_query_form', '树形列表查询工具', 'webui', '<el-collapse-transition>\n    <el-form v-if=\"searchShow\" ref=\"query\" :inline=\"true\" :model=\"dataForm\" @keyup.enter.native=\"getDataList()\">\n      <#list queryColList as c>\n        <#if c.showType==\'select\' >\n            <!--下拉框-->\n            <el-form-item>\n              <el-select v-model=\"dataForm.${c.javaField}\" placeholder=\"${c.comments}\" clearable>\n                <#if c.dictType?? && c.dictType !=\'\' >\n                    <el-option v-for=\"template in $getDictList(\'${c.dictType}\', true)\"\n                    :key=\"template.val\"\n                    :label=\"template.label\"\n                    :value=\"template.val\"></el-option>\n                </#if>\n              </el-select>\n            </el-form-item>\n        <#elseif c.showType==\'dateselect\' >\n            <!--日期框-->\n            <el-form-item>\n              <el-date-picker v-model=\"dataForm.${c.javaField}\"\n              placeholder=\"${c.comments}\" type=\"date\" ></el-date-picker>\n            </el-form-item>\n        <#else>\n            <!--文本框-->\n            <el-form-item>\n              <el-input v-model=\"dataForm.${c.javaField}\"\n              placeholder=\"${c.comments}\" clearable></el-input>\n            </el-form-item>\n        </#if>\n      </#list>\n      <el-form-item>\n        <el-button type=\"primary\" @click=\"getTreeDataList()\">{{ $t(\'query\') }}</el-button>\n        <el-button @click=\"searchReset()\">{{ $t(\'reset\') }}</el-button>\n      </el-form-item>\n    </el-form>\n</el-collapse-transition>', '', 'admin', '2019-11-19 14:15:38', 'admin', '2020-04-08 13:52:03');
INSERT INTO `gen_code_snippet` VALUES (1247465785450848257, 'tree_tablelist_i18n', '树形列表有国际化', 'webui', '<vxe-toolbar :custom=\"{immediate:true}\">\n  <template v-slot:buttons>\n    <el-button v-if=\"$hasPermission(\'${moduleName}:${className}:save\')\" type=\"primary\" @click=\"addOrUpdateHandle()\">{{ $t(\'add\') }}</el-button>\n  <el-button @click=\"$refs.xTree.setAllTreeExpansion(true)\">{{ $t(\'openall\') }}</el-button>\n  <el-button @click=\"$refs.xTree.clearTreeExpand()\">{{ $t(\'closeall\') }}</el-button>\n  </template>\n  <template v-slot:tools>\n    <el-button icon=\"el-icon-search\" @click=\"searchShowHandle()\" circle></el-button>\n    <el-button icon=\"el-icon-refresh\" @click=\"getTreeDataList()\" circle></el-button>\n    <el-button icon=\"el-icon-download\" @click=\"$refs.xTable.openExport()\" circle></el-button>\n  </template>\n</vxe-toolbar>\n<vxe-table ref=\"xTree\"\n           :loading=\"dataListLoading\"\n           auto-resize\n            :tree-config=\"{children: \'children\',trigger:\'cell\'}\"\n           :data=\"dataList\">\n  <vxe-table-column type=\"index\" width=\"120\" align=\"left\" tree-node></vxe-table-column>\n <#list listColList as c>\n   <#if fieldMap[c.javaField]?? >\n        <#assign fieldName = \"common.${c.javaField}\">\n    <#else>\n        <#assign fieldName = \"${className}.${c.javaField}\">\n    </#if>\n   <!--${c.comments}  -->\n    <vxe-table-column field=\"${c.javaField}\" title=\"${fieldName}\"  <#if c.widthType != \'default\'> width=\"${c.widthType}\"</#if> <#if c.alignType != \'default\'> align=\"${c.alignType}\"</#if> <#if table.columnLocks??&&table.columnLocks?seq_contains(c.javaField)> fixed=\"left\" </#if>   >\n        <#if c.dictType?? && c.dictType !=\'\' >\n             <template slot-scope=\"scope\">\n                {{$getDictLabel(\'${c.dictType}\', scope.row.${c.javaField})}}\n             </template>\n        </#if>\n    </vxe-table-column>\n  </#list>\n  <vxe-table-column title=\"handle\" align=\"center\" show-overflow=\"false\" width=\"170\" fixed=\"right\" >\n    <template slot-scope=\"scope\">\n    <el-button v-if=\"$hasPermission(\'${moduleName}:${className}:save\')\" type=\"text\" size=\"small\" icon=\"el-icon-plus\" @click=\"addChild(scope.row)\">{{ $t(\'addChild\') }}</el-button>\n      <el-button v-if=\"$hasPermission(\'gen:genTableTemplate:update\')\" type=\"text\" size=\"small\" icon=\"el-icon-edit\"  @click=\"addOrUpdateHandle(scope.row)\">{{ $t(\'update\') }}</el-button>\n      <el-button v-if=\"$hasPermission(\'gen:genTableTemplate:delete\')\" type=\"text\" size=\"small\" icon=\"el-icon-delete\" @click=\"deleteHandle(scope.row.id)\">{{ $t(\'delete\') }}</el-button>\n    </template>\n  </vxe-table-column>\n</vxe-table>\n', '', 'admin', '2020-04-07 18:06:35', 'admin', '2020-04-08 13:35:36');
INSERT INTO `gen_code_snippet` VALUES (1247697161521520641, 'ui_tree_query_form_i18n', '树形列表查询工具有国际化', 'webui', '<el-collapse-transition>\n    <el-form v-if=\"searchShow\" ref=\"query\" :inline=\"true\" :model=\"dataForm\" @keyup.enter.native=\"getDataList()\">\n      <#list queryColList as c>\n        <#if fieldMap[c.javaField]?? >\n            <#assign fieldName = \"$t(\'common.${c.javaField}\')\">\n        <#else>\n            <#assign fieldName = \"$t(\'${className}.${c.javaField}\')\">\n        </#if>\n        <!--${c.comments}  -->\n        <#if c.showType==\'select\' >\n            <!--下拉框-->\n            <el-form-item>\n              <el-select v-model=\"dataForm.${c.javaField}\" :placeholder=\"${fieldName}\" clearable>\n                <#if c.dictType?? && c.dictType !=\'\' >\n                    <el-option v-for=\"template in $getDictList(\'${c.dictType}\', true)\"\n                    :key=\"template.val\"\n                    :label=\"template.label\"\n                    :value=\"template.val\"></el-option>\n                </#if>\n              </el-select>\n            </el-form-item>\n        <#elseif c.showType==\'dateselect\' >\n            <!--日期框-->\n            <el-form-item>\n              <el-date-picker v-model=\"dataForm.${c.javaField}\"\n              :placeholder=\"${fieldName}\" type=\"date\" ></el-date-picker>\n            </el-form-item>\n        <#else>\n            <!--文本框-->\n            <el-form-item>\n              <el-input v-model=\"dataForm.${c.javaField}\"\n              :placeholder=\"${fieldName}\" clearable></el-input>\n            </el-form-item>\n        </#if>\n      </#list>\n      <el-form-item>\n        <el-button type=\"primary\" @click=\"getTreeDataList()\">{{ $t(\'query\') }}</el-button>\n        <el-button @click=\"searchReset()\">{{ $t(\'reset\') }}</el-button>\n      </el-form-item>\n    </el-form>\n</el-collapse-transition>', '', 'admin', '2020-04-08 09:25:59', 'admin', '2020-04-08 13:51:49');
COMMIT;


-- ----------------------------
-- Table structure for gen_table
-- ----------------------------
DROP TABLE IF EXISTS `gen_table`;
CREATE TABLE `gen_table` (
  `id` bigint(20) NOT NULL COMMENT '主键',
  `source_code` varchar(255) NOT NULL,
  `source_name` varchar(255) NOT NULL,
  `table_name` varchar(64) NOT NULL COMMENT '表名',
  `class_name` varchar(100) NOT NULL COMMENT '实体类名称',
  `comments` text NOT NULL COMMENT '表说明',
  `tpl_category` text COMMENT '生成模板分类',
  `package_name` text COMMENT '生成包路径',
  `module_name` varchar(30) DEFAULT NULL COMMENT '生成模块名',
  `sub_module_name` varchar(30) DEFAULT NULL COMMENT '生成子模块名',
  `function_name` text COMMENT '生成功能名',
  `function_name_simple` varchar(100) DEFAULT NULL COMMENT '生成功能名（简写）',
  `function_author` varchar(100) DEFAULT NULL COMMENT '生成功能作者',
  `language_flag` tinyint(1) DEFAULT '1' COMMENT '是否支持国际化',
  `tenant_flag` tinyint(1) DEFAULT '1' COMMENT '是否支持多租户',
  `gen_base_dir` text COMMENT '生成基础路径',
  `data_filter_str` varchar(512) DEFAULT NULL COMMENT '数据权限串',
  `head_lock` tinyint(1) DEFAULT '1' COMMENT '表头锁定',
  `column_lock` varchar(256) DEFAULT NULL COMMENT '锁定列',
  `options` text COMMENT '其它生成选项',
  `child_table_code` varchar(64) DEFAULT NULL COMMENT '子表关联表名',
  `child_field_code` varchar(64) DEFAULT NULL COMMENT '子表关联字段',
  `is_sync` tinyint(1) DEFAULT NULL COMMENT '是否同步表结构 0-否 1-是',
  `remark` varchar(255) DEFAULT NULL COMMENT '备注信息',
  `creator` varchar(64) DEFAULT NULL COMMENT '创建者',
  `create_date` datetime NOT NULL COMMENT '创建时间',
  `updater` varchar(64) DEFAULT NULL COMMENT '更新者',
  `update_date` datetime NOT NULL COMMENT '更新时间',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE KEY `uq_source_table_name` (`source_code`,`table_name`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='生成表';


-- ----------------------------
-- Table structure for gen_table_column
-- ----------------------------
DROP TABLE IF EXISTS `gen_table_column`;
CREATE TABLE `gen_table_column` (
  `id` bigint(20) NOT NULL COMMENT '主键',
  `table_id` bigint(20) DEFAULT NULL,
  `table_name` varchar(64) NOT NULL COMMENT '表名',
  `column_name` varchar(64) NOT NULL COMMENT '列名',
  `column_type` varchar(100) NOT NULL COMMENT '类型',
  `comments` text COMMENT '列说明',
  `java_field` varchar(200) NOT NULL COMMENT 'JAVA字段名',
  `java_type` text NOT NULL COMMENT 'JAVA字段类型',
  `is_pk` char(1) DEFAULT NULL COMMENT '是否主键',
  `is_null` char(1) DEFAULT NULL COMMENT '是否可为空',
  `is_insert` char(1) DEFAULT NULL COMMENT '是否插入字段',
  `is_update` char(1) DEFAULT NULL COMMENT '是否更新字段',
  `is_list` char(1) DEFAULT NULL COMMENT '是否列表字段',
  `sort_type` varchar(16) DEFAULT NULL COMMENT '排序类型',
  `format_type` varchar(16) DEFAULT NULL COMMENT '格式类型',
  `align_type` varchar(16) DEFAULT NULL COMMENT '居中类型',
  `width_type` varchar(16) DEFAULT NULL COMMENT '宽度类型',
  `is_query` char(1) DEFAULT NULL COMMENT '是否查询字段',
  `query_type` varchar(200) DEFAULT NULL COMMENT '查询方式',
  `total_type` varchar(16) DEFAULT NULL COMMENT '合计类型',
  `is_edit` char(1) DEFAULT NULL COMMENT '是否编辑',
  `is_delt` char(1) DEFAULT NULL COMMENT '是否编辑字段',
  `show_type` varchar(200) DEFAULT NULL COMMENT '表单类型',
  `dict_type` varchar(200) DEFAULT NULL COMMENT '字典类型',
  `sorts` decimal(8,0) DEFAULT NULL COMMENT '排序（升序）',
  `valid` text COMMENT '字段验证',
  `options` text COMMENT '其它生成选项',
  `remarks` varchar(255) DEFAULT NULL COMMENT '备注信息',
  `creator` varchar(64) DEFAULT NULL COMMENT '创建者',
  `create_date` datetime NOT NULL COMMENT '创建时间',
  `updater` varchar(64) DEFAULT NULL COMMENT '更新者',
  `update_date` datetime NOT NULL COMMENT '更新时间',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE KEY `uq_table_id_colnumn` (`table_id`,`column_name`,`table_name`) USING BTREE,
  KEY `IDX_GEN_TABLE_COLUMN_TN` (`table_name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='生成表字段';


-- ----------------------------
-- Table structure for gen_table_template
-- ----------------------------
DROP TABLE IF EXISTS `gen_table_template`;
CREATE TABLE `gen_table_template` (
  `id` bigint(20) NOT NULL COMMENT '主键',
  `template_code` varchar(64) NOT NULL COMMENT '模板编码',
  `template_name` varchar(256) NOT NULL COMMENT '模板描述',
  `template_file` varchar(512) NOT NULL COMMENT '模板文件路径',
  `app_type` varchar(64) DEFAULT NULL COMMENT '程序类型',
  `file_path` varchar(256) DEFAULT NULL COMMENT '代码文件路径',
  `file_name` varchar(256) DEFAULT NULL COMMENT '代码文件名',
  `file_content` text COMMENT '代码内容',
  `remark` varchar(256) DEFAULT NULL COMMENT '备注信息',
  `creator` varchar(64) DEFAULT NULL COMMENT '创建者',
  `create_date` datetime NOT NULL COMMENT '创建时间',
  `updater` varchar(64) DEFAULT NULL COMMENT '更新者',
  `update_date` datetime NOT NULL COMMENT '更新时间',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE KEY `uq_source_table_name` (`template_code`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='生成模板列表';

-- ----------------------------
-- Records of gen_table_template
-- ----------------------------
BEGIN;
INSERT INTO `gen_table_template` VALUES (1, 'entity', '单体通用-数据实体类', 'javafile/web/common/entity.xml', 'java', 'src/main/java/${packageName}/modules/${moduleName}/entity', '${ClassName}Entity.java', '/**\n * Copyright &copy; 2013-2019 山东易科德软件有限公司\n * All rights reserved.\n */\npackage ${packageName}.modules.${moduleName}.entity;\nimport com.baomidou.mybatisplus.annotation.FieldFill;\nimport com.baomidou.mybatisplus.annotation.TableField;\nimport com.baomidou.mybatisplus.annotation.TableName;\n<#if table.tenantFlag>\nimport ${packageName}.core.entity.BaseTenantEntity;\n<#else>\nimport ${packageName}.core.entity.BaseEntity;\n</#if>\nimport lombok.Data;\nimport lombok.EqualsAndHashCode;\n<#list importList as i>\nimport ${i};\n</#list>\n/**\n * ${table.tableNameAndComments}\n * ${functionName}Entity\n * @author ${functionAuthor}\n * @since  ${functionVersion}\n */\n@Data\n@EqualsAndHashCode(callSuper=false)\n@TableName(\"${tableName}\")\npublic class ${ClassName}Entity extends  <#if table.tenantFlag>BaseTenantEntity<#else>BaseEntity</#if> {\n    private static final long serialVersionUID = ${uuid}L;\n    <#-- 生成字段属性 -->\n     <#list columnList as c>\n     <#if c.columnName!= \'id\' && c.columnName!= \'creator\' && c.columnName!= \'create_date\' && c.columnName!= \'tenant_id\' >\n    /**\n    * <#if c.comments??>${c.comments}</#if>\n    */\n    <#if c.columnName == \'updater\' || c.columnName == \'update_date\'>\n    @TableField(fill = FieldFill.INSERT_UPDATE)\n    </#if>\n    private ${c.simpleJavaType} ${c.simpleJavaField};\n    </#if>\n   </#list>\n}\n', NULL, '1', '2019-10-22 15:03:20', 'admin', '2020-04-06 12:55:38');
INSERT INTO `gen_table_template` VALUES (2, 'dto', '单体通用-页面实体类', 'javafile/web/common/dto.xml', 'java', 'src/main/java/${packageName}/modules/${moduleName}/dto', '${ClassName}DTO.java', '/**\n * Copyright &copy; 2013-2019 山东易科德软件有限公司\n * All rights reserved.\n */\npackage ${packageName}.modules.${moduleName}.dto;\nimport io.swagger.annotations.ApiModel;\nimport io.swagger.annotations.ApiModelProperty;\nimport lombok.Data;\nimport java.io.Serializable;\n<#list importList as i>\nimport ${i};\n</#list>\n/**\n * ${table.tableNameAndComments}\n * ${functionName}DTO\n * @author ${functionAuthor}\n * @since  ${functionVersion}\n */\n@Data\n@ApiModel(value = \"${table.comments}\")\npublic class ${ClassName}DTO implements Serializable {\n   private static final long serialVersionUID = 1L;\n    <#-- 生成非主键字段属性 -->\n    <#list columnList as c>\n    /**\n    * <#if c.comments??>${c.comments}</#if>\n    */\n    @ApiModelProperty(value = \"${c.comments}\")\n    private ${c.simpleJavaType} ${c.simpleJavaField};\n   </#list>\n}', NULL, '1', '2019-10-22 15:03:20', 'admin', '2019-11-13 17:10:55');
INSERT INTO `gen_table_template` VALUES (3, 'execl', '单体通用-导入导出类', 'javafile/web/common/excel.xml', 'java', 'src/main/java/${packageName}/modules/${moduleName}/excel', '${ClassName}Excel.java', '/**\n * Copyright &copy; 2013-2019 山东易科德软件有限公司\n * All rights reserved.\n */\npackage ${packageName}.modules.${moduleName}.excel;\nimport cn.afterturn.easypoi.excel.annotation.Excel;\nimport lombok.Data;\n<#list importList as i>\nimport ${i};\n</#list>\n/**\n * ${table.tableNameAndComments}\n * ${functionName}Excel\n * @author ${functionAuthor}\n * @since  ${functionVersion}\n */\n@Data\npublic class ${ClassName}Excel {\n   private static final long serialVersionUID = 1L;\n  <#-- 生成非主键字段属性 -->\n  <#list columnList as c>\n    /**\n    * <#if c.comments??>${c.comments}</#if>\n    */\n    @Excel(name = \"${c.comments}\")\n    private ${c.simpleJavaType} ${c.simpleJavaField};\n </#list>\n}\n', NULL, '1', '2019-10-22 15:03:20', 'admin', '2019-11-13 17:11:43');
INSERT INTO `gen_table_template` VALUES (4, 'dao', '单体通用-数据操作', 'javafile/web/common/dao.xml', 'java', 'src/main/java/${packageName}/modules/${moduleName}/dao', '${ClassName}Dao.java', '/**\n * Copyright &copy; 2013-2019 山东易科德软件有限公司\n * All rights reserved.\n */\npackage ${packageName}.modules.${moduleName}.dao;\nimport ${packageName}.core.dao.BaseDao;\nimport ${packageName}.modules.${moduleName}.entity.${ClassName}Entity;\nimport org.apache.ibatis.annotations.Mapper;\n<#if table.ruleSorts?? >\nimport com.baomidou.mybatisplus.core.conditions.Wrapper;\nimport com.baomidou.mybatisplus.core.metadata.IPage;\nimport com.baomidou.mybatisplus.core.toolkit.Constants;\nimport com.uniedp.common.annotation.DataFilter;\nimport org.apache.ibatis.annotations.Param;\nimport java.util.List;\n</#if>\n/**\n * ${table.tableNameAndComments}\n * ${functionName}Dao\n * @author ${functionAuthor}\n * @since  ${functionVersion}\n */\n@Mapper\npublic interface ${ClassName}Dao extends BaseDao<${ClassName}Entity> {\n   <#if table.ruleSorts?? >\n        /**\n     * 根据 entity 条件，查询全部记录\n     *\n     * @param queryWrapper 实体对象封装操作类（可以为 null）\n     */\n    @Override\n    @DataFilter(bizTableAliasFields={<#list table.ruleSorts as c><#if c ==\'DS_COMPANY\' >\"${c},company_id\"<#elseif c ==\'DS_DEPT\'>\"${c},dept_id\"</#if><#if c_has_next>,</#if></#list>})\n    List<${ClassName}Entity> selectList(@Param(Constants.WRAPPER)Wrapper<${ClassName}Entity> queryWrapper);\n\n    /**\n     * 根据 entity 条件，查询全部记录（并翻页）\n     *\n     * @param page         分页查询条件（可以为 RowBounds.DEFAULT）\n     * @param queryWrapper 实体对象封装操作类（可以为 null）\n     */\n    @Override\n    @DataFilter(bizTableAliasFields={<#list table.ruleSorts as c><#if c ==\'DS_COMPANY\' >\"${c},company_id\"<#elseif c ==\'DS_DEPT\'>\"${c},dept_id\"</#if><#if c_has_next>,</#if></#list>})\n    <E extends IPage<${ClassName}Entity>> E selectPage(E page, @Param(Constants.WRAPPER)Wrapper<${ClassName}Entity> queryWrapper);\n   </#if>\n}', NULL, '1', '2019-10-22 15:03:20', 'admin', '2020-04-09 14:06:59');
INSERT INTO `gen_table_template` VALUES (5, 'mapper', '单体通用-数据库操作映射', 'javafile/web/common/daoMapper.xml', 'java', 'src/main/resources/mapper/${moduleName}', '${ClassName}Dao.xml', '<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE mapper PUBLIC \"-//mybatis.org//DTD Mapper 3.0//EN\" \"http://mybatis.org/dtd/mybatis-3-mapper.dtd\">\n<mapper namespace=\"${packageName}.modules.${moduleName}.dao.${ClassName}Dao\">\n</mapper>', NULL, '1', '2019-10-22 15:03:20', 'admin', '2019-11-13 17:11:16');
INSERT INTO `gen_table_template` VALUES (6, 'service', '单体通用-业务逻辑接口', 'javafile/web/common/service.xml', 'java', 'src/main/java/${packageName}/modules/${moduleName}/service', '${ClassName}Service.java', '/**\n * Copyright &copy; 2013-2019 山东易科德软件有限公司\n * All rights reserved.\n */\npackage ${packageName}.modules.${moduleName}.service;\nimport java.util.List;\nimport ${packageName}.core.service.CrudService;\nimport ${packageName}.modules.${moduleName}.dto.${ClassName}DTO;\nimport ${packageName}.modules.${moduleName}.entity.${ClassName}Entity;\n/**\n * ${functionName}Service\n * @author ${functionAuthor}\n * @version ${functionVersion}\n */\npublic interface ${ClassName}Service extends CrudService<${ClassName}Entity, ${ClassName}DTO> {\n\n}\n', NULL, '1', '2019-10-22 15:03:20', 'admin', '2019-11-13 17:11:53');
INSERT INTO `gen_table_template` VALUES (7, 'serviceImpl', '单体通用-业务逻辑实现', 'javafile/web/common/serviceImpl.xml', 'java', 'src/main/java/${packageName}/modules/${moduleName}/service/impl', '${ClassName}ServiceImpl.java', '/**\n * Copyright &copy; 2013-2019 山东易科德软件有限公司\n * All rights reserved.\n */\npackage ${packageName}.modules.${moduleName}.service.impl;\nimport com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;\nimport ${packageName}.core.service.impl.CrudServiceImpl;\nimport ${packageName}.modules.${moduleName}.dao.${ClassName}Dao;\nimport ${packageName}.modules.${moduleName}.dto.${ClassName}DTO;\nimport ${packageName}.modules.${moduleName}.entity.${ClassName}Entity;\nimport ${packageName}.modules.${moduleName}.service.${ClassName}Service;\nimport org.apache.commons.lang3.StringUtils;\nimport org.springframework.stereotype.Service;\nimport java.util.Map;\n\n/**\n * ${functionName}ServiceImpl\n * @author ${functionAuthor}\n * @version ${functionVersion}\n */\n@Service\npublic class ${ClassName}ServiceImpl extends CrudServiceImpl<${ClassName}Dao, ${ClassName}Entity, ${ClassName}DTO> implements ${ClassName}Service {\n\n    @Override\n    public QueryWrapper<${ClassName}Entity> getWrapper(Map<String, Object> params){\n    QueryWrapper<${ClassName}Entity> wrapper = new QueryWrapper<>();\n    String id = (String)params.get(\"id\");\n    wrapper.eq(StringUtils.isNotBlank(id), \"id\", id);\n    <#list columnList as c >\n      <#if c.isQuery ==\'1\' && c.isPk == \'0\' >\n        Object ${(c.simpleJavaField)!}=params.get(\"${(c.simpleJavaField)!}\");\n        if(${(c.simpleJavaField)!}!=null){\n          wrapper.${(c.queryType)!}(StringUtils.isNotBlank(${(c.simpleJavaField)!}.toString()), \"${(c.columnName)!}\", ${(c.simpleJavaField)!}.toString());\n        }\n      </#if>\n    </#list>\n    return wrapper;\n    }\n}', NULL, '1', '2019-10-22 15:03:20', 'admin', '2019-11-13 17:12:02');
INSERT INTO `gen_table_template` VALUES (8, 'controller', '单体通用-接口访问', 'javafile/web/common/controller.xml', 'java', 'src/main/java/${packageName}/modules/${moduleName}/controller', '${ClassName}Controller.java', '/**\n * Copyright &copy; 2013-2019 山东易科德软件有限公司\n * All rights reserved.\n */\npackage ${packageName}.modules.${moduleName}.controller;\nimport ${packageName}.core.annotation.LogOperation;\nimport ${packageName}.core.constant.Constant;\nimport ${packageName}.core.page.PageData;\nimport ${packageName}.core.utils.ExcelUtils;\nimport ${packageName}.core.utils.Result;\nimport ${packageName}.core.validator.AssertUtils;\nimport ${packageName}.core.validator.ValidatorUtils;\nimport ${packageName}.core.validator.group.AddGroup;\nimport ${packageName}.core.validator.group.DefaultGroup;\nimport ${packageName}.core.validator.group.UpdateGroup;\nimport ${packageName}.modules.${moduleName}.dto.${ClassName}DTO;\nimport ${packageName}.modules.${moduleName}.excel.${ClassName}Excel;\nimport ${packageName}.modules.${moduleName}.service.${ClassName}Service;\nimport io.swagger.annotations.Api;\nimport io.swagger.annotations.ApiImplicitParam;\nimport io.swagger.annotations.ApiImplicitParams;\nimport io.swagger.annotations.ApiOperation;\nimport org.apache.shiro.authz.annotation.RequiresPermissions;\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.web.bind.annotation.*;\nimport springfox.documentation.annotations.ApiIgnore;\nimport javax.servlet.http.HttpServletResponse;\nimport java.util.List;\nimport java.util.Map;\n/**\n * ${table.tableNameAndComments}\n * ${functionName}Controller\n * @author ${functionAuthor}\n * @since  ${functionVersion}\n */\n@RestController\n@RequestMapping(\"${moduleName}/${className}\")\n@Api(tags=\"${table.comments}\")\npublic class ${ClassName}Controller {\n    @Autowired\n    private ${ClassName}Service ${className}Service;\n    @GetMapping(\"page\")\n    @ApiOperation(\"分页\")\n    @ApiImplicitParams({\n        @ApiImplicitParam(name = Constant.PAGE, value = \"当前页码，从1开始\", paramType = \"query\", required = true, dataType=\"int\") ,\n        @ApiImplicitParam(name = Constant.LIMIT, value = \"每页显示记录数\", paramType = \"query\",required = true, dataType=\"int\") ,\n        @ApiImplicitParam(name = Constant.ORDER_FIELD, value = \"排序字段\", paramType = \"query\", dataType=\"String\") ,\n        @ApiImplicitParam(name = Constant.ORDER, value = \"排序方式，可选值(asc、desc)\", paramType = \"query\", dataType=\"String\")\n    })\n    @RequiresPermissions(\"${moduleName}:${className}:page\")\n    public Result<PageData<${ClassName}DTO>> page(@ApiIgnore @RequestParam Map<String, Object> params){\n        PageData<${ClassName}DTO> page = ${className}Service.page(params);\n        return new Result<PageData<${ClassName}DTO>>().ok(page);\n    }\n    @GetMapping(\"{id}\")\n    @ApiOperation(\"信息\")\n    @RequiresPermissions(\"${moduleName}:${className}:info\")\n    public Result<${ClassName}DTO> get(@PathVariable(\"id\") Long id){\n        ${ClassName}DTO data = ${className}Service.get(id);\n        return new Result<${ClassName}DTO>().ok(data);\n    }\n    @GetMapping(\"list\")\n    @ApiOperation(\"列表\")\n    @RequiresPermissions(\"${moduleName}:${className}:info\")\n    public Result<List<${ClassName}DTO>> list(@ApiIgnore @RequestParam Map<String, Object> params) {\n        List<${ClassName}DTO> list = ${className}Service.list(params);\n        return new Result<List<${ClassName}DTO>>().ok(list);\n    }\n\n    @PostMapping\n    @ApiOperation(\"保存\")\n    @LogOperation(\"保存\")\n    @RequiresPermissions(\"${moduleName}:${className}:save\")\n    public Result save(@RequestBody ${ClassName}DTO dto){\n        //效验数据\n        ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class);\n        ${className}Service.save(dto);\n        return new Result().ok(dto);\n    }\n    @PutMapping\n    @ApiOperation(\"修改\")\n    @LogOperation(\"修改\")\n    @RequiresPermissions(\"${moduleName}:${className}:update\")\n    public Result update(@RequestBody ${ClassName}DTO dto){\n        //效验数据\n        ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class);\n        ${className}Service.update(dto);\n        return new Result().ok(dto);\n    }\n    @DeleteMapping\n    @ApiOperation(\"删除\")\n    @LogOperation(\"删除\")\n    @RequiresPermissions(\"${moduleName}:${className}:delete\")\n    public Result delete(@RequestBody Long[] ids){\n        //效验数据\n        AssertUtils.isArrayEmpty(ids, \"id\");\n        ${className}Service.delete(ids);\n        return new Result();\n    }\n\n    @GetMapping(\"export\")\n    @ApiOperation(\"导出\")\n    @LogOperation(\"导出\")\n    @RequiresPermissions(\"${moduleName}:${className}:export\")\n    public void export(@ApiIgnore @RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception {\n        List<${ClassName}DTO> list = ${className}Service.list(params);\n        ExcelUtils.exportExcelToTarget(response, null, list, ${ClassName}Excel.class);\n    }\n\n}', NULL, '1', '2019-10-22 15:03:20', 'admin', '2020-04-06 14:16:51');
INSERT INTO `gen_table_template` VALUES (9, 'add', '单表弹出框-新增修改', 'uifile/curd/ui-dialog/add-or-update.vue.xml', 'webui', 'src/views/modules/${moduleName}/', '${className}-add-or-update.vue', '<template>\n  <el-dialog width=\"60%\"  :visible.sync=\"visible\" :title=\"!dataForm.${pkField} ? $t(\'add\') : $t(\'update\')\" :close-on-click-modal=\"false\" :close-on-press-escape=\"false\">\n    <el-col :span=\"24\">\n    <#if table.languageFlag >\n     <code-snippet id=\"edit_form_i18n\" code=\"edit_form_i18n\" />\n    <#else>\n      <code-snippet id=\"edit_form\" code=\"edit_form\" />\n    </#if>\n    </el-col>\n    <template slot=\"footer\">\n      <el-button @click=\"visible = false\">{{ $t(\'cancel\') }}</el-button>\n      <el-button type=\"primary\" :loading=\"loading\" @click=\"dataFormSubmitHandle()\">{{ $t(\'confirm\') }}</el-button>\n    </template>\n  </el-dialog>\n</template>\n<script>\nimport debounce from \'lodash/debounce\'\n<code-snippet id=\"edit_form_imp\" code=\"edit_form_imp\" />\nexport default {\n  data () {\n    return {\n      loading: false,\n      visible: false,\n      dataForm: {\n        <#list columnList as c>\n          <#if c.javaField != \'status\' && c.javaField != \'creator\' && c.javaField != \'createDate\' && c.javaField != \'updater\' && c.javaField != \'updateDate\'  && c.javaField != \'tenantId\' >\n           ${c.javaField}:\'\'<#if c_has_next>,</#if>\n          </#if>\n        </#list>\n      }\n    }\n  },\n  <code-snippet id=\"edit_form_computed\" code=\"edit_form_computed\" />\n  methods: {\n    init () {\n      this.visible = true\n      this.$nextTick(() => {\n        this.$refs[\'dataForm\'].resetFields()\n        if (this.dataForm.${pkField}) {\n          this.loading = true\n          this.getInfo()\n        }\n      })\n    },\n    <code-snippet id=\"edit_form_getinfo\" code=\"edit_form_getinfo\" />\n    // 表单提交\n    dataFormSubmitHandle: debounce(function () {\n      this.$refs[\'dataForm\'].validate((valid) => {\n        if (!valid) {\n          return false\n        }\n        this.loading = true\n        this.$http[!this.dataForm.${pkField} ? \'post\' : \'put\'](\'/${moduleName}/${className}/\', this.dataForm).then(({ data: res }) => {\n          this.loading = false\n          if (res.code !== 0) {\n            return false\n          }\n          this.$message({\n            message: this.$t(\'prompt.success\'),\n            type: \'success\',\n            duration: 500,\n            onClose: () => {\n              this.visible = false\n              this.$emit(\'refreshDataList\')\n            }\n          })\n        }).catch(() => {})\n      })\n    }, 1000, { \'leading\': true, \'trailing\': false })\n  }\n}\n</script>\n', NULL, '1', '2019-10-22 15:03:20', 'admin', '2020-04-07 16:28:25');
INSERT INTO `gen_table_template` VALUES (10, 'index', '单表弹出框-列表', 'uifile/curd/ui-dialog/index.vue.xml', 'webui', 'src/views/modules/${moduleName}/', '${className}.vue', '<template>\n <el-card shadow=\"never\" >\n   <#if table.languageFlag >\n    <code-snippet id=\"ui_query_form_i18n\" code=\"ui_query_form_i18n\" />\n    <code-snippet id=\"tablelist_i18n\" code=\"tablelist_i18n\" />\n   <#else>\n    <code-snippet id=\"ui_query_form\" code=\"ui_query_form\" />\n    <code-snippet id=\"tablelist\" code=\"tablelist\" />\n   </#if>\n    <add-or-update v-if=\"addOrUpdateVisible\" ref=\"addOrUpdate\" @refreshDataList=\"getDataList\"></add-or-update>  \n </el-card>\n</template>\n<script>\nimport mixinViewModule from \'@/mixins/view-module\'\nimport AddOrUpdate from \'./${className}-add-or-update\'\nexport default {\n  mixins: [mixinViewModule],\n  data () {\n	return {\n	  searchShow : true,\n	  mixinViewModuleOptions: {\n		getDataListURL: \'/${moduleName}/${className}/page\',\n		getDataListIsPage: true,\n		deleteURL: \'/${moduleName}/${className}\',\n		deleteIsBatch: true,\n		exportURL: \'/${moduleName}/${className}/export\'\n	  },\n       headLock:${table.headLock?string},\n    <#if totalFlag>\n      sumFields: \'${sumFields}\',\n    </#if>\n	  dataForm: {\n		<#list queryColList as c>\n			 ${c.javaField}:\'\'<#if c_has_next>,</#if>\n		</#list>\n	  }\n	}\n  },\n  components: {\n	AddOrUpdate\n  },\n  methods: {\n  <#if totalFlag>\n    footerMethod ({ columns, data }) {\n      const sums = []\n      columns.forEach((column, columnIndex) => {\n        if (columnIndex === 0) {\n          sums.push(\'合计\')\n        } else {\n          let sumCell = null\n          switch (column.property) {\n           <#list listColList as c>\n               <#if c.totalType??&&c.totalType != \'default\'>\n                  case \'${c.javaField}\':\n                   sumCell = this.sumData.${c.javaField}\n                   break\n               </#if>\n           </#list>\n          }\n          sums.push(sumCell)\n        }\n      })\n      // 返回一个二维数组的表尾合计\n      return [sums]\n    },\n    </#if>\n    // 新增 / 修改\n    addOrUpdateHandle (row) {\n      let id \n      if(row){\n        id = row.id\n      }\n      this.addOrUpdateVisible = true\n      this.$nextTick(() => {\n        this.$refs.addOrUpdate.dataForm.id = id\n        this.$refs.addOrUpdate.init()\n      })\n    }\n  }\n}\n</script>\n', NULL, '1', '2019-10-22 15:03:20', 'admin', '2020-04-08 15:11:15');
INSERT INTO `gen_table_template` VALUES (11, 'i18n-txt', '国际化资源文件', 'i18n/en-US.xml', 'i18n', 'src/views/modules/${moduleName}/', '${className}-i18n.txt', 't.${className} = {}\n<#list columnList as c>\n    <#if c.isPk ==\'0\' && !fieldMap[c.javaField]?? >\nt.${className}.${c.javaField} = \'${c.comments}\'\n    </#if>\n</#list>', NULL, '1', '2019-10-22 15:03:20', 'admin', '2020-04-07 17:21:04');
INSERT INTO `gen_table_template` VALUES (1186937928857743362, 'tab-index', '单表标签页-列表页', 'uifile/curd/ui-tabs/index.vue.xml', 'webui', 'src/views/modules/${moduleName}/', '${className}.vue', '<template>\n  <el-card shadow=\"never\" >\n   <#if table.languageFlag >\n    <code-snippet id=\"ui_query_form_i18n\" code=\"ui_query_form_i18n\" />\n    <code-snippet id=\"tablelist_i18n\" code=\"tablelist_i18n\" />\n   <#else>\n    <code-snippet id=\"ui_query_form\" code=\"ui_query_form\" />\n    <code-snippet id=\"tablelist\" code=\"tablelist\" />\n   </#if>\n   </el-card>\n</template>\n<script>\nimport mixinViewModule from \'@/mixins/view-module\'\nexport default {\n  mixins: [mixinViewModule],\n  data () {\n	return {\n	  searchShow : true,\n	  mixinViewModuleOptions: {\n		getDataListURL: \'/${moduleName}/${className}/page\',\n		getDataListIsPage: true,\n		deleteURL: \'/${moduleName}/${className}\',\n		deleteIsBatch: true,\n		exportURL: \'/${moduleName}/${className}/export\'\n	  },\n          headLock:${table.headLock?string},\n          <#if totalFlag>\n                sumFields: \'${sumFields}\',\n          </#if>\n	  dataForm: {\n		<#list queryColList as c>\n			 ${c.javaField}:\'\'<#if c_has_next>,</#if>\n		</#list>\n	  }\n	}\n  },\n  methods: {\n    <#if totalFlag>\n    footerMethod ({ columns, data }) {\n      const sums = []\n      columns.forEach((column, columnIndex) => {\n        if (columnIndex === 0) {\n          sums.push(\'合计\')\n        } else {\n          let sumCell = null\n          switch (column.property) {\n           <#list listColList as c>\n               <#if c.totalType??&&c.totalType != \'default\'>\n                  case \'${c.javaField}\':\n                   sumCell = this.sumData.${c.javaField}\n                   break\n               </#if>\n           </#list>\n          }\n          sums.push(sumCell)\n        }\n      })\n      // 返回一个二维数组的表尾合计\n      return [sums]\n    },\n    </#if>\n    // 新增 / 修改\n    addOrUpdateHandle (row) {\n      let title = \'新增\'\n      let id\n      if (row) {\n        title = row.title\n        id = row.id\n      }\n      // 打开路由\n      var router = {\n        name: \'${moduleName}-${className}-editTab\',\n        id: id,\n        menuId: this.$route.meta.menuId,\n        oldName: \'${moduleName}-${className}\',\n        path: \'${moduleName}/${className}-editTab\',\n        title: \'编辑${functionName}----\'+title\n      }\n      var params = {\n        id: id,\n        timestamp: this.$xeutils.timestamp()\n      }\n      this.$options.methods.openNewTab(this.$router, router, params)\n    }\n  }\n}\n</script>\n', '', 'admin', '2019-10-23 17:30:29', 'admin', '2020-04-08 15:11:44');
INSERT INTO `gen_table_template` VALUES (1186938061737488385, 'tabs-edit', '单表标签页-编辑页', 'uifile/curd/ui-tabs/editTab.vue.xml', 'webui', 'src/views/modules/${moduleName}/', '${className}-editTab.vue', '<template>\n  <el-card v-loading=\"loading\">\n    <div slot=\"header\" class=\"clearfix\">\n      <el-button @click=\"closeTab()\">{{ $t(\'cancel\') }}</el-button>\n      <el-button type=\"primary\" @click=\"dataFormSubmitHandle()\">{{ $t(\'confirm\') }}</el-button>\n    </div>\n    <el-col :span=\"24\">\n    <#if table.languageFlag >\n     <code-snippet id=\"edit_form_i18n\" code=\"edit_form_i18n\" />\n    <#else>\n      <code-snippet id=\"edit_form\" code=\"edit_form\" />\n    </#if>\n    </el-col>\n  </el-card>\n</template>\n\n<script>\nimport debounce from \'lodash/debounce\'\nimport mainContent from \'@/views/main-content\'\n<code-snippet id=\"edit_form_imp\" code=\"edit_form_imp\" />\nvar content = mainContent\n\nexport default {\n  data () {\n    return {\n      timestamp: this.$route.params.timestamp,\n      loading : false,\n      dataForm: {\n        <#list columnList as c>\n        	<#if c.javaField ==\'id\' >\n        	 id: this.$route.params.id,\n        	<#elseif c.javaField != \'status\' && c.javaField != \'creator\' && c.javaField != \'createDate\' && c.javaField != \'updater\' && c.javaField != \'updateDate\'  && c.javaField != \'tenantId\' >\n        	 ${c.javaField}:\'\'<#if c_has_next>,</#if>\n        	</#if>\n        </#list>\n      }\n    }\n  },\n  <code-snippet id=\"edit_form_computed\" code=\"edit_form_computed\" />\n  created () {\n    // 通过路由参数pid, 控制列表请求操作\n this.$nextTick(() => {\n    this.$refs[\'dataForm\'].resetFields()\n    if (this.$route.params.${pkField}) {\n      this.dataForm.${pkField} = this.$route.params.${pkField}\n      this.loading = true\n      this.getInfo()\n    }\n })\n  },\n  methods: {\n    // 获取信息\n    <code-snippet id=\"edit_form_getinfo\" code=\"edit_form_getinfo\" />\n    // 关闭 tab\n    closeTab () {\n      content.methods.tabRemoveHandle(this.$route.name)\n    },\n    // 表单提交\n    dataFormSubmitHandle: debounce(function () {\n      this.$refs[\'dataForm\'].validate((valid) => {\n        if (!valid) {\n          return false\n        }\n        this.$http[!this.dataForm.${pkField} ? \'post\' : \'put\'](\'/${moduleName}/${className}/\', this.dataForm).then(({ data: res }) => {\n          if (res.code !== 0) {\n            return false\n          }\n          this.$message({\n            message: this.$t(\'prompt.success\'),\n            type: \'success\',\n            duration: 500,\n            onClose: () => {\n              this.closeTab()\n              this.$emit(\'refreshDataList\')\n            }\n          })\n        }).catch(() => {})\n      })\n    }, 1000, { \'leading\': true, \'trailing\': false })\n  }\n}\n</script>\n', '', 'admin', '2019-10-23 17:31:01', 'admin', '2020-04-08 15:08:45');
INSERT INTO `gen_table_template` VALUES (1186946109465980929, 'tree-serviceImpl', '树表-业务逻辑实现', 'javafile/web/tree/serviceImpl.xml', 'java', 'src/main/java/${packageName}/modules/${moduleName}/service/impl', '${ClassName}ServiceImpl.java', '/**\n * Copyright &copy; 2013-2019 山东易科德软件有限公司\n * All rights reserved.\n */\npackage ${packageName}.modules.${moduleName}.service.impl;\nimport com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;\nimport ${packageName}.core.service.impl.CrudServiceImpl;\nimport ${packageName}.modules.${moduleName}.dao.${ClassName}Dao;\nimport ${packageName}.modules.${moduleName}.dto.${ClassName}DTO;\nimport ${packageName}.modules.${moduleName}.entity.${ClassName}Entity;\nimport ${packageName}.modules.${moduleName}.service.${ClassName}Service;\nimport org.apache.commons.lang3.StringUtils;\nimport org.springframework.stereotype.Service;\nimport java.util.Map;\nimport java.util.List;\n/**\n * ${functionName}ServiceImpl\n * @author ${functionAuthor}\n * @version ${functionVersion}\n */\n@Service\npublic class ${ClassName}ServiceImpl extends CrudServiceImpl<${ClassName}Dao, ${ClassName}Entity, ${ClassName}DTO> implements ${ClassName}Service {\n    static Long treeRootCode = 0l;\n\n    @Override\n    public QueryWrapper<${ClassName}Entity> getWrapper(Map<String, Object> params){\n        QueryWrapper<${ClassName}Entity> wrapper = new QueryWrapper<>();\n        String id = (String)params.get(\"id\");\n        wrapper.eq(StringUtils.isNotBlank(id), \"id\", id);\n        <#list columnList as c>\n        	<#if c.isQuery ==\'1\' && c.isPk == \'0\' >\n			Object ${c.simpleJavaField}=params.get(\"${c.simpleJavaField}\");\n			if(${c.simpleJavaField}!=null){\n				wrapper.${c.queryType}(StringUtils.isNotBlank(${c.simpleJavaField}.toString()), \"${c.columnName}\", ${c.simpleJavaField}.toString());\n			}\n        	</#if>\n        </#list>\n        Object id_ne = params.get(\"id_ne\");\n        if (id_ne != null) {\n            wrapper.ne(StringUtils.isNotBlank(id_ne.toString()), \"id\", id_ne.toString());\n        }\n        Object pid_ne = params.get(\"pid_ne\");\n        if (pid_ne != null) {\n            wrapper.notLike(StringUtils.isNotBlank(pid_ne.toString()), \"pids\", pid_ne.toString());\n        }\n        wrapper.orderBy(true, true, \"sort\");\n\n        return wrapper;\n    }\n\n        /**\n     * @Description:重写保存方法\n     * @Param: [dto]\n     * @return: void\n     * @Author: ${functionAuthor}\n     * @Date:\n     */\n    @Override\n    public void save(${ClassName}DTO dto) {\n        if (dto.getPid() == null) {\n            dto.setPid(treeRootCode);\n            dto.setPids(treeRootCode.toString());\n            dto.setTreeLevel(treeRootCode.intValue() + 1);\n        } else {\n            //获取父级节点\n            ${ClassName}DTO parent = get(dto.getPid());\n            //设置树级别\n            dto.setTreeLevel(parent.getTreeLevel() + 1);\n            dto.setPids(parent.getPids() + \",\" + parent.getId().toString());\n        }\n        super.save(dto);\n    }\n\n    /**\n     * @Description:重写保存方法\n     * @Param: [dto]\n     * @return: void\n     * @Author: ${functionAuthor}\n     * @Date:\n     */\n    @Override\n    public void update(${ClassName}DTO dto) {\n        if (dto.getPid() == null) {\n            dto.setPid(treeRootCode);\n            dto.setPids(treeRootCode.toString());\n            dto.setTreeLevel(treeRootCode.intValue() + 1);\n        } else {\n            if (!dto.getPid().equals(treeRootCode)) {\n                //获取修改后的父级节点\n                ${ClassName}DTO parent = get(dto.getPid());\n                //设置树级别\n                dto.setTreeLevel(parent.getTreeLevel() + 1);\n                dto.setPids(parent.getPids() + \",\" + parent.getId().toString());\n            } else {\n                dto.setTreeLevel(treeRootCode.intValue() + 1);\n                dto.setPid(treeRootCode);\n                dto.setPids(treeRootCode.toString());\n            }\n        }\n        super.update(dto);\n    }\n\n    /**\n     * @Description:重写删除方法\n     * @Param: [ids]\n     * @return: void\n     * @Author: ${functionAuthor}\n     * @Date:\n     */\n    @Override\n    public void delete(Long[] ids) {\n        //重写树表删除 获取第一个id 然后删除本级以及子级\n        if (ids.length > 0) {\n            Long id = ids[0];\n            if(getListPid(id).size()>0){\n               throw  new NewSailException(\"请先删除子级内容\");\n            }\n            QueryWrapper<${ClassName}Entity> wrapper = new QueryWrapper<>();\n            wrapper.eq(\"id\", id);\n            this.baseDao.delete(wrapper);\n        }\n    }\n\n    /**\n     * @Description:获取是否包含子级\n     * @Param: [ids]\n     * @return: void\n     * @Author: ${functionAuthor}\n     * @Date:\n     */\n    private List<${ClassName}Entity> getListPid(Long pid) {\n        QueryWrapper<${ClassName}Entity> wrapper = new QueryWrapper<>();\n         wrapper.eq(\"pid\", pid);\n         return this.baseDao.selectList(wrapper);\n    }\n\n\n}\n', '', 'admin', '2019-10-23 18:03:00', 'admin', '2020-03-18 16:12:34');
INSERT INTO `gen_table_template` VALUES (1186946251833241602, 'tree-index', '树表-列表页', 'uifile/tree/ui/index.vue.xml', 'webui', 'src/views/modules/${moduleName}/', '${className}.vue', '<template>\n    <el-card shadow=\"never\">\n    <#if table.languageFlag>\n    <code-snippet id=\"ui_tree_query_form_i18n\" code=\"ui_tree_query_form_i18n\" />\n    <code-snippet id=\"tree_tablelist_i18n\" code=\"tree_tablelist_i18n\" />\n    <#else>\n    <code-snippet id=\"ui_tree_query_form\" code=\"ui_tree_query_form\" />\n    <code-snippet id=\"tree_tablelist\" code=\"tree_tablelist\" />\n    </#if>\n     <!-- 弹窗, 新增 / 修改 -->\n     <add-or-update v-if=\"addOrUpdateVisible\" ref=\"addOrUpdate\" @refreshDataList=\"getTreeDataList\"></add-or-update>	\n   </el-card>\n</template>\n<script>\nimport mixinViewModule from \'@/mixins/view-module\'\nimport AddOrUpdate from \'./${className}-add-or-update\'\nimport { treeDataTranslate } from \'@/utils/index\'\nexport default {\n  mixins: [mixinViewModule],\n  data () {\n	return {\n	  searchShow: true,\n	  mixinViewModuleOptions: {\n		getDataListURL: \'/${moduleName}/${className}/list\',\n		getDataListIsPage: false,\n		deleteURL: \'/${moduleName}/${className}\',\n		deleteIsBatch: true,\n		exportURL: \'/${moduleName}/${className}/export\',\n                getTreeDataListURL: \'/${moduleName}/${className}/list\',\n                treeType: true\n	  },\n	  dataForm: {\n		<#list queryColList as c>\n			 ${c.javaField}:\'\'<#if c_has_next>,</#if>\n		</#list>\n	  }\n	}\n  },\n  components: {\n	AddOrUpdate\n  },\n  methods: {\n    // 新增 / 修改\n    addOrUpdateHandle (row) {\n      let id\n      if(row){\n         id=row.id\n      }\n      this.addOrUpdateVisible = true\n      this.getTreeCompList(id).then(res => {\n        this.$refs.addOrUpdate.parentTreeData = res\n        this.$nextTick(() => {\n          this.$refs.addOrUpdate.dataForm.id = id\n          this.$refs.addOrUpdate.dataForm.pid = \'\'\n          this.$refs.addOrUpdate.init()\n        })\n      })\n    },\n    addChild (row) {\n      this.addOrUpdateVisible = true\n       this.getTreeCompList().then(res => {\n          this.$refs.addOrUpdate.parentTreeData = res\n          this.$nextTick(() => {\n            this.$refs.addOrUpdate.dataForm.pid = row.id\n            this.$refs.addOrUpdate.init()\n          })\n        })\n    },\n    // 父级树组件\n    getTreeCompList (id) {\n      return new Promise(resolve => {\n        this.$http.get(\n          this.mixinViewModuleOptions.getTreeDataListURL,\n          {\n            params: {\n              id_ne: id,\n              pid_ne: id\n            }\n          }\n        ).then(({ data: res }) => {\n          if (res.code !== 0) {\n            return false\n          }\n          resolve(treeDataTranslate(res.data, \'id\', \'pid\'))\n        }).catch(err => {\n          return this.$message.error(err)\n        })\n      })\n    }\n  }\n}\n</script>\n', '', 'admin', '2019-10-23 18:03:33', 'admin', '2020-04-08 09:27:38');
INSERT INTO `gen_table_template` VALUES (1186946543756800001, 'tree-add', '树表-数据维护', 'uifile/tree/ui/add-or-update.vue.xml', 'webui', 'src/views/modules/${moduleName}/', '${className}-add-or-update.vue', '<template>\n  <el-dialog  :visible.sync=\"visible\"  width=\"60%\"  :title=\"!dataForm.${pkField} ? $t(\'add\') : $t(\'update\')\" :close-on-click-modal=\"false\" :close-on-press-escape=\"false\">\n    <el-col :span=\"24\">\n     <#if table.languageFlag>\n      <code-snippet id=\"edit_form_i18n\" code=\"edit_form_i18n\" />\n     <#else>\n      <code-snippet id=\"edit_form\" code=\"edit_form\" />\n     </#if>\n    </el-col>\n    <template slot=\"footer\">\n      <el-button @click=\"visible = false\">{{ $t(\'cancel\') }}</el-button>\n      <el-button type=\"primary\" :loading=\"loading\" @click=\"dataFormSubmitHandle()\">{{ $t(\'confirm\') }}</el-button>\n    </template>\n  </el-dialog>\n</template>\n\n<script>\nimport debounce from \'lodash/debounce\'\nimport ElTreeSelect from \'@/components/uni-tree-select\'\n<code-snippet id=\"edit_form_imp\" code=\"edit_form_imp\" />\nexport default {\n  data () {\n    return {\n      loading: false,\n      visible: false,\n      parentTreeData: [],\n      dataForm: {\n        <#list columnList as c>\n        <#if c.javaField != \'status\' && c.javaField != \'pids\' && c.javaField != \'creator\' && c.javaField != \'createDate\' && c.javaField != \'updater\' && c.javaField != \'updateDate\'  && c.javaField != \'tenantId\' >\n           ${c.javaField}:\'\'<#if c_has_next>,</#if>\n          </#if>\n        </#list>\n      }\n    }\n  },\n  <code-snippet id=\"edit_form_computed\" code=\"edit_form_computed\" />\n  components: { ElTreeSelect },\n  methods: {\n    init () {\n      this.visible = true\n      this.$nextTick(() => {\n        if (this.dataForm.${pkField}) {\n          this.loading = true\n          this.getInfo()\n        } else {\n          this.$refs[\'dataForm\'].resetFields()\n        }\n      })\n    },\n    // 获取信息\n   <code-snippet id=\"edit_form_getinfo\" code=\"edit_form_getinfo\" />\n    // 表单提交\n    dataFormSubmitHandle: debounce(function () {\n      this.$refs[\'dataForm\'].validate((valid) => {\n        if (!valid) {\n          return false\n        }\n        this.loading = true\n        this.$http[!this.dataForm.${pkField} ? \'post\' : \'put\'](\'/${moduleName}/${className}/\', this.dataForm).then(({ data: res }) => {\n         this.loading = false\n          if (res.code !== 0) {\n            return this.$message.error(res.msg)\n          }\n          this.$message({\n            message: this.$t(\'prompt.success\'),\n            type: \'success\',\n            duration: 500,\n            onClose: () => {\n              this.visible = false\n              this.$emit(\'refreshDataList\')\n            }\n          })\n        }).catch(() => {})\n      })\n    }, 1000, { \'leading\': true, \'trailing\': false })\n  }\n}\n</script>\n', '', 'admin', '2019-10-23 18:04:43', 'admin', '2020-04-08 10:51:07');
INSERT INTO `gen_table_template` VALUES (1187178320828059649, 'bpm-dto', '单体bpm-页面实体类', 'javafile/web/bpm/dto.xml', 'java', 'src/main/java/${packageName}/modules/${moduleName}/dto', '${ClassName}DTO.java', '/**\n * Copyright &copy; 2013-2019 山东易科德软件有限公司\n * All rights reserved.\n */\npackage ${packageName}.modules.${moduleName}.dto;\nimport io.swagger.annotations.ApiModel;\nimport io.swagger.annotations.ApiModelProperty;\nimport lombok.Data;\nimport com.uniedp.modules.flowable.base.BaseBpmDTO;\nimport java.io.Serializable;\n\n<#list importList as i>\nimport ${i};\n</#list>\n/**\n * ${table.tableNameAndComments}\n * ${functionName}DTO\n * @author ${functionAuthor}\n * @since  ${functionVersion}\n */\n@Data\n@ApiModel(value = \"${table.comments}\")\npublic class ${ClassName}DTO  extends BaseBpmDTO implements Serializable {\n    private static final long serialVersionUID = ${uuid}L;\n    <#-- 生成非主键字段属性 -->\n<#list columnList as c>\n    /**\n    * <#if c.comments??>${c.comments}</#if>\n    */\n    <#if c.columnName!= \'id\'>\n    @ApiModelProperty(value = \"${c.comments}\")\n    private ${c.simpleJavaType} ${c.simpleJavaField};\n    </#if>\n</#list>\n}', '', 'admin', '2019-10-24 09:25:43', 'admin', '2019-11-19 14:20:57');
INSERT INTO `gen_table_template` VALUES (1187178545349152770, 'bpm-service', '单体bpm-业务逻辑接口', 'javafile/web/bpm/service.xml', 'java', 'src/main/java/${packageName}/modules/${moduleName}/service', '${ClassName}Service.java', '/**\n * Copyright &copy; 2013-2019 山东易科德软件有限公司\n * All rights reserved.\n */\npackage ${packageName}.modules.${moduleName}.service;\nimport java.util.List;\nimport ${packageName}.modules.flowable.base.BaseBpmService;\nimport ${packageName}.modules.${moduleName}.dto.${ClassName}DTO;\nimport ${packageName}.modules.${moduleName}.entity.${ClassName}Entity;\n/**\n * ${functionName}Service\n * @author ${functionAuthor}\n * @version ${functionVersion}\n */\npublic interface ${ClassName}Service extends BaseBpmService<${ClassName}Entity, ${ClassName}DTO> {\n\n}', '', 'admin', '2019-10-24 09:26:37', 'admin', '2019-11-19 14:21:48');
INSERT INTO `gen_table_template` VALUES (1187178677712998402, 'bpm-serviceImpl', '单体bpm-业务逻辑实现', 'javafile/web/bpm/serviceImpl.xml', 'java', 'src/main/java/${packageName}/modules/${moduleName}/service/impl', '${ClassName}ServiceImpl.java', '/**\n * Copyright &copy; 2013-2019 山东易科德软件有限公司\n * All rights reserved.\n */\npackage ${packageName}.modules.${moduleName}.service.impl;\nimport com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;\nimport ${packageName}.modules.flowable.base.impl.BaseBpmServiceImpl;\nimport ${packageName}.modules.${moduleName}.dao.${ClassName}Dao;\nimport ${packageName}.modules.${moduleName}.dto.${ClassName}DTO;\nimport ${packageName}.modules.${moduleName}.entity.${ClassName}Entity;\nimport ${packageName}.modules.${moduleName}.service.${ClassName}Service;\nimport org.apache.commons.lang3.StringUtils;\nimport org.springframework.stereotype.Service;\nimport java.util.Map;\n/**\n * ${functionName}ServiceImpl\n * @author ${functionAuthor}\n * @version ${functionVersion}\n */\n@Service\npublic class ${ClassName}ServiceImpl extends BaseBpmServiceImpl<${ClassName}Dao, ${ClassName}Entity, ${ClassName}DTO> implements ${ClassName}Service {\n\n    @Override\n    public QueryWrapper<${ClassName}Entity> getWrapper(Map<String, Object> params){\n        QueryWrapper<${ClassName}Entity> wrapper = new QueryWrapper<>();\n        String id = (String)params.get(\"id\");\n        wrapper.eq(StringUtils.isNotBlank(id), \"id\", id);\n        <#list columnList as c>\n        	<#if c.isQuery ==\'1\' && c.isPk == \'0\' >\n			Object ${c.javaField}=params.get(\"${c.javaField}\");\n			if(${c.javaField}!=null){\n				wrapper.${c.queryType}(StringUtils.isNotBlank(${c.javaField}.toString()), \"${c.columnName}\", ${c.javaField}.toString());\n			}\n        	</#if>\n        </#list>\n        return wrapper;\n    }\n}', '', 'admin', '2019-10-24 09:27:08', 'admin', '2019-11-13 16:11:50');
INSERT INTO `gen_table_template` VALUES (1187179262231203842, 'bpm-form', '单体bpm-表单', 'uifile/flowable/ui/form.vue.xml', 'webui', 'src/views/modules/${moduleName}/', '${className}-flowable-form.vue', '<template>\n  <el-card v-loading=\"loading\">\n     <div slot=\"header\" class=\"clearfix\">\n         <el-button v-if=\"edit\" @click=\"closeTab()\">{{ $t(\'cancel\') }}</el-button>\n         <el-button v-if=\"edit\" type=\"primary\" @click=\"dataFormSubmitHandle()\">{{ $t(\'save\') }}</el-button>\n         <el-button v-if=\"edit\" type=\"primary\" @click=\"dataFormApplyHandle()\">{{ $t(\'submit\') }}</el-button>\n    </div>\n    <el-col :span=\"24\">\n       <#if table.languageFlag>\n        <code-snippet id=\"edit_form_i18n\" code=\"edit_form_i18n\" />\n       <#else>\n        <code-snippet id=\"edit_form\" code=\"edit_form\" />\n       </#if>\n    </el-col>\n    <approver ref=\"approver\" @approverHandle=\"approverHandle\"></approver>\n  </el-card>\n</template>\n\n<script>\nimport debounce from \'lodash/debounce\'\nimport approver from \'@/views/modules/flowable/bpmForm-approver\'\n<code-snippet id=\"edit_form_imp\" code=\"edit_form_imp\" />\nimport mainContent from \'@/views/main-content\'\nvar content = mainContent\nexport default {\n  data () {\n    return {\n      // 允许编辑\n      edit: false,\n      // 后台api\n      url: \'/${moduleName}/${className}\',\n      // 定义表ID\n      formId: \'\',\n      timestamp: this.$route.params.timestamp,\n      loading: false,\n      dataForm: {\n        <#list columnList as c>\n            <#if c.javaField ==\'id\' >\n             id: \'\',\n            <#else>\n             ${c.javaField}:\'\'<#if c_has_next>,</#if>\n            </#if>\n        </#list>\n      }\n    }\n  },\n  components: {\n    approver\n  },\n   <code-snippet id=\"edit_form_computed\" code=\"edit_form_computed\" />\n  created () {\n     // 通过路由参数pid, 控制列表请求操作\n    this.$nextTick(() => {\n      this.$refs[\'dataForm\'].resetFields()\n      this.edit = this.$route.params.edit\n      this.formId = this.$route.params.formId\n      if (this.$route.params.bizId) {\n        // 设置ID\n        this.dataForm.id = this.$route.params.bizId\n        // 获取表单数据\n        this.getInfo()\n      }\n      this.dataForm.formId = this.formId\n    })\n  },\n  methods: {\n   // 获取信息\n    getInfo () {\n      this.loading = true\n      this.$http.get(`${r\"${\"}this.url${r\"}\"}/${r\"${\"}this.dataForm.id${r\"}\"}`).then(({ data: res }) => {\n        this.loading = false\n        if (res.code !== 0) {\n          return\n        }\n        this.dataForm = {\n          ...this.dataForm,\n          ...res.data\n        }\n        this.dataForm.formId = this.formId\n      })\n     },\n    // 提交申请\n    dataFormApplyHandle () {\n      this.dataForm.assignees = null\n      this.$refs[\'dataForm\'].validate((valid) => {\n        if (!valid) {\n          return false\n        }\n        this.loading = true\n        // 保存表单数据\n        this.$http[!this.dataForm.id ? \'post\' : \'put\'](this.url, this.dataForm).then(({ data: res }) => {\n          if (res.code !== 0) {\n            // 保存失败\n            this.loading = false\n            return\n          }\n          if (!this.dataForm.id) {\n            this.dataForm.id = res.data.id\n          }\n          // 验证审批人\n          this.$http[\'post\'](\'/${moduleName}/${className}/startNextTaskInfo\', this.dataForm).then(({ data: res }) => {\n            if (res.code !== 0) {\n              this.loading = false\n              return this.$message.error(res.msg)\n            }\n            this.dataForm.assignees = res.data\n            this.$refs.approver.dataForm.assignees = this.dataForm.assignees\n            this.$refs.approver.init()\n          })\n         })\n        this.loading = false\n      })\n    },\n    // 表单提交\n    dataFormSubmitHandle: debounce(function () {\n      this.$refs[\'dataForm\'].validate((valid) => {\n        if (!valid) {\n          return false\n        }\n        this.$http[!this.dataForm.${pkField} ? \'post\' : \'put\'](\'/${moduleName}/${className}/\', this.dataForm).then(({ data: res }) => {\n          if (res.code !== 0) {\n            return this.$message.error(res.msg)\n          }\n          this.$message({\n            message: this.$t(\'prompt.success\'),\n            type: \'success\',\n            duration: 500,\n            onClose: () => {\n              this.closeTab()\n              this.$emit(\'refreshDataList\')\n            }\n          })\n        }).catch(() => {})\n      })\n    }, 1000, { \'leading\': true, \'trailing\': false }),\n    // 审批人选择回调(提交申请)\n    approverHandle () {\n      this.loading = true\n      this.$http[\'post\'](`${r\"${\"}this.url${r\"}\"}/submit`, this.dataForm).then(({ data: res }) => {\n        this.loading = false\n        if (res.code !== 0) {\n          return\n        }\n        this.$message({\n          message: this.$t(\'prompt.success\'),\n          type: \'success\',\n          duration: 500,\n          onClose: () => {\n            this.closeTab()\n            this.$emit(\'refreshDataList\')\n          }\n        })\n      }).catch(() => { })\n    },\n    // 关闭 tab\n    closeTab () {\n      content.methods.tabRemoveHandle(this.$route.name)\n    }\n  }\n}\n</script>', '', 'admin', '2019-10-24 09:29:27', 'admin', '2020-04-08 15:08:01');
INSERT INTO `gen_table_template` VALUES (1187194157332971522, 'bpm-controller', '单体bpm-接口访问', 'javafile/web/bpm/controller.xml', 'java', 'src/main/java/${packageName}/modules/${moduleName}/controller', '${ClassName}Controller.java', '/**\n * Copyright &copy; 2013-2019 山东易科德软件有限公司\n * All rights reserved.\n */\npackage ${packageName}.modules.${moduleName}.controller;\nimport ${packageName}.core.annotation.LogOperation;\nimport ${packageName}.core.constant.Constant;\nimport ${packageName}.core.page.PageData;\nimport ${packageName}.core.utils.ExcelUtils;\nimport ${packageName}.core.utils.Result;\nimport ${packageName}.core.validator.AssertUtils;\nimport ${packageName}.core.validator.ValidatorUtils;\nimport ${packageName}.core.validator.group.AddGroup;\nimport ${packageName}.core.validator.group.DefaultGroup;\nimport ${packageName}.core.validator.group.UpdateGroup;\nimport ${packageName}.modules.${moduleName}.dto.${ClassName}DTO;\nimport ${packageName}.modules.${moduleName}.service.${ClassName}Service;\nimport io.swagger.annotations.Api;\nimport io.swagger.annotations.ApiImplicitParam;\nimport io.swagger.annotations.ApiImplicitParams;\nimport io.swagger.annotations.ApiOperation;\nimport org.apache.shiro.authz.annotation.RequiresPermissions;\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.web.bind.annotation.*;\nimport springfox.documentation.annotations.ApiIgnore;\nimport javax.servlet.http.HttpServletResponse;\nimport java.util.List;\nimport java.util.Map;\n/**\n * ${table.tableNameAndComments}\n * ${functionName}Controller\n * @author ${functionAuthor}\n * @since  ${functionVersion}\n */\n@RestController\n@RequestMapping(\"${moduleName}/${className}\")\n@Api(tags=\"${table.comments}\")\npublic class ${ClassName}Controller {\n    @Autowired\n    private ${ClassName}Service ${className}Service;\n\n    @GetMapping(\"{id}\")\n    @ApiOperation(\"信息\")\n    @RequiresPermissions(\"${moduleName}:${className}:form\")\n    public Result<${ClassName}DTO> get(@PathVariable(\"id\") Long id){\n        ${ClassName}DTO data = ${className}Service.get(id);\n        return new Result<${ClassName}DTO>().ok(data);\n    }\n\n    @PostMapping\n    @ApiOperation(\"保存\")\n    @LogOperation(\"保存\")\n    @RequiresPermissions(\"${moduleName}:${className}:form\")\n    public Result save(@RequestBody ${ClassName}DTO dto){\n        //效验数据\n        ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class);\n        ${className}Service.saveBiz(dto);\n        return new Result().ok(dto);\n    }\n\n    @PutMapping\n    @ApiOperation(\"修改\")\n    @LogOperation(\"修改\")\n    @RequiresPermissions(\"${moduleName}:${className}:form\")\n    public Result update(@RequestBody ${ClassName}DTO dto){\n        //效验数据\n        ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class);\n        ${className}Service.update(dto);\n        return new Result().ok(dto);\n    }\n\n    @PostMapping(value = \"startNextTaskInfo\")\n    @ApiOperation(\"获取审批人\")\n    @RequiresPermissions(\"${moduleName}:${className}:form\")\n    public Result getStartNextTaskInfo(@RequestBody ${ClassName}DTO dto) {\n        return new Result().ok(${className}Service.getApprover(dto.getFormId(), dto.getId()));\n    }\n\n    @PostMapping(\"submit\")\n    @ApiOperation(\"提交申请\")\n    @RequiresPermissions(\"${moduleName}:${className}:form\")\n    public Result submit(@RequestBody ${ClassName}DTO dto) {\n        ${className}Service.apply(dto.getId(), dto.getAssignees());\n        return new Result();\n    }\n}', '', 'admin', '2019-10-24 10:28:39', 'admin', '2019-11-19 14:19:39');
INSERT INTO `gen_table_template` VALUES (1187554106030477313, 'parentEditTable-parent-index', '主子表(可编辑table)-主表列表页', 'uifile/parent/ui-edittable/parentIndex.vue.xml', 'webui', 'src/views/modules/${moduleName}/', '${parentclassName}.vue', '<template>\n <el-card shadow=\"never\" >\n   <#if table.languageFlag >\n    <code-snippet id=\"ui_query_form_i18n\" code=\"ui_query_form_i18n\" />\n    <code-snippet id=\"tablelist_i18n\" code=\"tablelist_i18n\" />\n   <#else>\n    <code-snippet id=\"ui_query_form\" code=\"ui_query_form\" />\n    <code-snippet id=\"tablelist\" code=\"tablelist\" />\n   </#if>\n   </el-card>\n</template>\n<script>\nimport mixinViewModule from \'@/mixins/view-module\'\nexport default {\n  mixins: [mixinViewModule],\n  data () {\n    return {\n       searchShow : true,\n      mixinViewModuleOptions: {\n        getDataListURL: \'/${moduleName}/${parentclassName}/page\',\n        getDataListIsPage: true,\n        deleteURL: \'/${moduleName}/${parentclassName}\',\n        deleteIsBatch: true,\n        exportURL: \'/${moduleName}/${parentclassName}/export\'\n      },\n headLock:${table.headLock?string},\n    <#if totalFlag>\n      sumFields: \'${sumFields}\',\n    </#if>\n      dataForm: {\n        <#list columnList as c>\n            <#if c.isQuery == \'1\' >\n             ${c.javaField}:\'\'<#if c_has_next>,</#if>\n            </#if>\n        </#list>\n      }\n    }\n  },\n  methods: {\n<#if totalFlag>\n    footerMethod ({ columns, data }) {\n      const sums = []\n      columns.forEach((column, columnIndex) => {\n        if (columnIndex === 0) {\n          sums.push(\'合计\')\n        } else {\n          let sumCell = null\n          switch (column.property) {\n           <#list listColList as c>\n               <#if c.totalType??&&c.totalType != \'default\'>\n                  case \'${c.javaField}\':\n                   sumCell = this.sumData.${c.javaField}\n                   break\n               </#if>\n           </#list>\n          }\n          sums.push(sumCell)\n        }\n      })\n      // 返回一个二维数组的表尾合计\n      return [sums]\n    },\n    </#if>\n    // 新增 / 修改\n    addOrUpdateHandle (row) {\n      let title = \'新增\'\n      let id\n      if (row) {\n        title = row.id\n        id = row.id\n      }\n      // 打开路由\n      var router = {\n        name: \'${moduleName}-${parentclassName}-editForm\',\n        id: \'\',\n        menuId: this.$route.meta.menuId,\n        oldName: \'${moduleName}-${className}\',\n        path: \'${moduleName}/${className}-editForm\',\n        title: \'编辑${functionName}\'+title\n      }\n      var params = {\n        timestamp: this.$xeutils.timestamp(),\n        ${pkField} : id\n      }\n      this.$options.methods.openNewTab(this.$router, router, params)\n    }\n  }\n}\n</script>', '', 'admin', '2019-10-25 10:18:57', 'admin', '2020-04-09 14:32:20');
INSERT INTO `gen_table_template` VALUES (1187554313786937345, 'parentEditTable-parent-editForm', '主子表(可编辑table)-主表编辑表单', 'uifile/parent/ui-edittable/parent-editForm.vue.xml', 'webui', 'src/views/modules/${moduleName}/', '${className}-editForm.vue', '<template>\n  <div>\n  <el-card v-loading=\"loading\">\n    <div slot=\"header\" class=\"clearfix\">\n        <el-button size=\"small\" type=\"primary\" @click=\"dataFormSubmitHandle()\">{{ $t(\'save\') }}</el-button>\n        <el-button size=\"small\" @click=\"closeTab()\">{{ $t(\'close\') }}</el-button>\n    </div>\n    <el-col :span=\"24\">\n     <#if table.languageFlag>\n      <code-snippet id=\"edit_form_i18n\" code=\"edit_form_i18n\" />\n     <#else>\n      <code-snippet id=\"edit_form\" code=\"edit_form\" />\n     </#if>\n    </el-col>\n  </el-card>\n  <child-list ref=\"childList\"></child-list>\n</div>\n</template>\n\n<script>\nimport debounce from \'lodash/debounce\'\nimport mainContent from \'@/views/main-content\'\n<code-snippet id=\"edit_form_imp\" code=\"edit_form_imp\" />\nimport ChildList from \'./${childclassName}-child\'\nvar content = mainContent\n\nexport default {\n  data () {\n    return {\n      timestamp: this.$route.params.timestamp,\n      loading : false,\n      activeName: \'1\',\n      dataForm: {\n      children: [],\n      deltList: [],\n      <#list columnList as c>\n          <#if c.isPk ==\'1\' >\n           ${c.javaField}: this.$route.params.${c.javaField},\n          <#elseif c.javaField != \'status\' && c.javaField != \'creator\' && c.javaField != \'createDate\' && c.javaField != \'updater\' && c.javaField != \'updateDate\'  && c.javaField != \'tenantId\' >\n           ${c.javaField}:\'\'<#if c_has_next>,</#if>\n          </#if>\n      </#list>\n      }\n    }\n  },\n  <code-snippet id=\"edit_form_computed\" code=\"edit_form_computed\" />\n  created () {\n    // 通过路由参数pid, 控制列表请求操作\n    this.$nextTick(() => {\n    this.$refs[\'dataForm\'].resetFields()\n    if (this.$route.params.${pkField}) {\n      this.dataForm.${pkField} = this.$route.params.${pkField}\n      this.loading = true\n      this.getInfo()\n    }\n    })\n  },\n  components: {\n    ChildList\n  },\n  methods: {\n    // 刷新子列表\n    refreshChildList () {\n      if (this.dataForm.${pkField}) {\n        this.$refs.childList.dataForm.${childField} = this.dataForm.${pkField}\n        this.$refs.childList.getDataList()\n      }\n    },\n    // 获取信息\n    getInfo () {\n        this.$http.get(`/${moduleName}/${parentclassName}/${r\"${\"}this.dataForm.${pkField}${r\"}\"}`).then(({ data: res }) => {\n        this.loading = false\n        if (res.code !== 0) {\n          return false\n        }\n        this.dataForm = {\n          ...this.dataForm,\n          ...res.data\n        }\n        this.refreshChildList()\n      }).catch(() => {})\n    },\n    // 关闭 tab\n    closeTab () {\n      content.methods.tabRemoveHandle(this.$route.name)\n      this.$emit(\'refreshDataList\')\n    },\n    // 表单提交\n    dataFormSubmitHandle: debounce(function () {\n      this.$refs[\'dataForm\'].validate((valid) => {\n        if (!valid) {\n            this.$message({\n                message: this.$t(\'prompt.valid\'),\n                type: \'error\',\n                duration: 1500\n            })\n          return false\n        }\n        let child = this.$refs.childList\n        if (child.getAllData().length <= 0) {\n          this.$message({\n            message: this.$t(\'prompt.children\'),\n            type: \'error\',\n            duration: 500\n          })\n          return false\n        }\n  // 子表验证\n    child.fullValidEvent().then(res => {\n      if(res){\n      this.dataForm.children = child.getAllData()\n      this.dataForm.deltList = child.deltList\n      this.$http[!this.dataForm.${pkField} ? \'post\' : \'put\'](\'/${moduleName}/${parentclassName}/\', this.dataForm).then(({ data: res }) => {\n          if (res.code !== 0) {\n            return false\n          }\n          this.$message({\n            message: this.$t(\'prompt.success\'),\n            type: \'success\',\n            duration: 500,\n            onClose: () => {\n                this.closeTab()\n            }\n          })\n      })\n      }  \n    })\n  })\n    }, 1000, { \'leading\': true, \'trailing\': false })\n  }\n}\n</script>\n', '', 'admin', '2019-10-25 10:19:47', 'admin', '2020-04-09 13:28:40');
INSERT INTO `gen_table_template` VALUES (1187554522323537921, 'parentEditTable-child-index', '主子表(可编辑table)-子表可编辑table', 'uifile/parent/ui-edittable/child-index.vue.xml', 'webui', 'src/views/modules/${moduleName}/', '${childclassName}-child.vue', '<template>\n    <el-card shadow=\"never\">\n    <div slot=\"header\" class=\"clearfix\">\n      <el-button size=\"small\" type=\"primary\" @click=\"addRow()\">{{ $t(\'add\') }}</el-button>\n    </div>\n          <vxe-table ref=\"editable\"\n                      :data=\"dataList\"\n                      class=\"vxe-table-element\"\n                      show-footer\n                      :footer-method=\"footerMethod\"\n                      :sort-config=\"{trigger:\'cell\'}\"\n                      @sort-change=\"sortChange\"\n                      :edit-config=\"{trigger: \'click\', mode: \'row\' }\"\n                      :edit-rules=\"dataRule\"\n                      style=\"width: 100%;\">\n                <vxe-table-column  type=\"index\" fixed=\"left\" width=\"50\"></vxe-table-column>\n                <#list childFileds.listColList as c >\n                    <#if table.languageFlag >\n                      <#if fieldMap[c.javaField]?? >\n                          <#assign fieldName = \"common.${c.javaField}\">\n                      <#else>\n                          <#assign fieldName = \"${className}.${c.javaField}\">\n                      </#if>\n                    <#else>\n                      <#assign fieldName = c.comments>\n                    </#if>\n                    <!--${c.comments}  -->\n                     <vxe-table-column field=\"${c.javaField}\" title=\"${c.comments}\" <#if c.sortType != \'default\'>sortable remote-sort :sort-by=\"\'${c.columnName}\'\"</#if>  <#if c.widthType != \'default\'> width=\"${c.widthType}\"</#if> <#if c.alignType != \'default\'> align=\"${c.alignType}\"</#if> \n                    <#if c.isEdit == \'0\' >\n                      >\n                    <#elseif c.showType==\'select\' >\n                        :edit-render=\"{name: \'ElSelect\',\n                         options:$getDictList(\'${c.dictType}\', true),\n                         optionProps:{value: \'val\', label: \'label\' } }\" >\n                    <#elseif c.showType==\'dateselect\' >\n                        :edit-render=\"{name: \'ElDatePicker\',\n                        props: {type: \'date\',valueFormat:\'yyyy-MM-dd HH:mm:ss\',format: \'yyyy-MM-dd\'}}\" >\n                    <#elseif c.showType==\'switch\' >\n                         :edit-render=\"{name: \'ElSwitch\',autofocus:false, type: \'visible\'}\" >\n                    <#elseif c.showType==\'number\' >\n                         :edit-render=\"{name: \'ElInputNumber\',autofocus:false,props: {min: 1,max:50} }\" >\n                    <#else>\n                         :edit-render=\"{name: \'ElInput\',autofocus:false}\" >\n                    </#if>\n                    </vxe-table-column>\n                </#list>\n            <vxe-table-column title=\"handle\"  align=\"center\" width=\"150\">\n              <template slot-scope=\"scope\">\n                <el-button  type=\"text\" icon=\"el-icon-delete\" size=\"small\" @click=\"deltRow(scope.row)\">{{ $t(\'delete\') }}</el-button>\n              </template>\n            </vxe-table-column>\n          </vxe-table>\n    </el-card>\n</template>\n<script>\nimport mixinViewModule from \'@/mixins/view-module\'\n<#if  childFileds.validsImp?? && (childFileds.validsImp?size &gt; 0) >\nimport {\n <#list childFileds.validsImp as validImp >\n    ${validImp}<#if validImp_has_next>,</#if>\n </#list>\n } from \'@/utils/validate\'\n</#if>\n\nexport default {\n  mixins: [mixinViewModule],\n  data () {\n    return {\n      mixinViewModuleOptions: {\n        activatedIsNeed: false,\n        getDataListURL: \'/${moduleName}/${childclassName}/list\',\n        getDataListIsPage: false,\n        deleteURL: \'/${moduleName}/${childclassName}\',\n        deleteIsBatch: false\n      },\n      dataForm: {\n            id:\'\',\n            parentId:\'\',\n         <#list childFileds.listColList as c>\n            <#if c.showType ==\'switch\' >\n             ${c.javaField}: false,\n            <#else>\n             ${c.javaField}:\'\'<#if c_has_next>,</#if>\n            </#if>\n        </#list>\n      },\n      deltList: [],\n      dataRule: {\n        <#list childFileds.listColList as c>\n            <#if c.valids?? && (c.valids?size &gt; 0) >\n                ${c.javaField}: [\n                    <#list c.valids as valid>\n                        <#if valid ==\'required\' >\n                        { required: true, message: this.$t(\'validate.required\'), trigger: \'blur\'}\n                        <#elseif valid ==\'email\' >\n                        { required : ${c.valids?seq_contains(\"required\")?string(\"true\", \"false\")}, validator: validateEmail, trigger: \'blur\' }\n                        <#elseif valid ==\'mobile\' >\n                        { required : ${c.valids?seq_contains(\"required\")?string(\"true\", \"false\")}, validator: validateMobile, trigger: \'blur\' }\n                        <#elseif valid ==\'phone\' >\n                        { required : ${c.valids?seq_contains(\"required\")?string(\"true\", \"false\")}, validator: validatePhone, trigger: \'blur\' }\n                        <#elseif valid ==\'url\' >\n                        { required : ${c.valids?seq_contains(\"required\")?string(\"true\", \"false\")}, validator: validateUrl, trigger: \'blur\' }\n                        <#elseif valid ==\'num\' >\n                        { required : ${c.valids?seq_contains(\"required\")?string(\"true\", \"false\")}, validator: validateNum, trigger: \'blur\' }\n                        </#if><#if valid_has_next>,</#if>\n                    </#list>\n                 ]<#if c_has_next>,</#if>\n            </#if>\n        </#list>\n      }\n    }\n  },\n  methods: {\n    footerMethod ({ columns, data }) {\n      const sums = []\n      columns.forEach((column, columnIndex) => {\n        if (columnIndex === 0) {\n          sums.push(\'合计\')\n        } else {\n          let sumCell = null\n          switch (column.property) {\n           <#list childFileds.listColList as c>\n               <#if c.totalType??&&c.totalType != \'default\'>\n                  case \'${c.javaField}\':\n                   sumCell = this.$xeutils.sum(data, column.property)\n                   break\n               </#if>\n           </#list>\n          }\n          sums.push(sumCell)\n        }\n      })\n      // 返回一个二维数组的表尾合计\n      return [sums]\n    },\n     // 新增\n    addRow () {\n      // 默认插入一行 可以设置插入数据的默认值 自行处理\n      this.$refs.editable.insertAt(this.dataForm).then(row => {\n        // 设置插入行的可编辑状态\n        this.$refs.editable.setActiveRow(row,-1)\n      })\n    },\n  getAllData () {\n      return this.$refs.editable.getTableData().tableData\n    },\n      // 删除row\n    deltRow (rowData) {\n      // 主键是否为空\n      if (rowData.id) {\n        // 不为空将 row 移到 deltList\n        this.deltList.push(rowData)\n        // 移除行\n        this.$refs.editable.remove(rowData)\n      } else {\n        this.$refs.editable.remove(rowData)\n      }\n    },\n    async fullValidEvent () {\n      const errMap = await this.$refs.editable.fullValidate().catch(errMap => errMap)\n      let self = this\n      if (errMap) {\n        Object.values(errMap).forEach(errList => {\n          errList.forEach(params => {\n            let { rowIndex, column, rules } = params\n            rules.forEach(rule => {\n              self.$message.error(`第 ${r\"${\"}rowIndex} 行 ${r\"${\"}column.title} 校验错误：${r\"${\"}rule.message}`)\n            })\n          })\n        })\n        return false\n      } else {\n        return true\n      }\n    }\n  }\n}\n</script>\n', '', 'admin', '2019-10-25 10:20:36', 'admin', '2020-04-09 13:32:16');
INSERT INTO `gen_table_template` VALUES (1187554777186226178, 'parent-child-controller', '主子表(一体事务)-子表接口访问', 'javafile/web/common/child-controller.xml', 'java', 'src/main/java/${packageName}/modules/${moduleName}/controller', '${childClassName}Controller.java', '/**\n     * Copyright &copy; 2013-2019 山东易科德软件有限公司\n     * All rights reserved.\n     */\n    package ${packageName}.modules.${moduleName}.controller;\n    import ${packageName}.core.annotation.LogOperation;\n    import ${packageName}.core.constant.Constant;\n    import ${packageName}.core.page.PageData;\n    import ${packageName}.core.utils.ExcelUtils;\n    import ${packageName}.core.utils.Result;\n    import ${packageName}.core.validator.AssertUtils;\n    import ${packageName}.core.validator.ValidatorUtils;\n    import ${packageName}.core.validator.group.AddGroup;\n    import ${packageName}.core.validator.group.DefaultGroup;\n    import ${packageName}.core.validator.group.UpdateGroup;\n    import ${packageName}.modules.${moduleName}.dto.${childClassName}DTO;\n    import ${packageName}.modules.${moduleName}.excel.${childClassName}Excel;\n    import ${packageName}.modules.${moduleName}.service.${childClassName}Service;\n    import io.swagger.annotations.Api;\n    import io.swagger.annotations.ApiImplicitParam;\n    import io.swagger.annotations.ApiImplicitParams;\n    import io.swagger.annotations.ApiOperation;\n    import org.springframework.beans.factory.annotation.Autowired;\n    import org.springframework.web.bind.annotation.*;\n    import springfox.documentation.annotations.ApiIgnore;\n\n    import javax.servlet.http.HttpServletResponse;\n    import java.util.List;\n    import java.util.Map;\n    /**\n     * ${table.tableNameAndComments}\n     * ${functionName}Controller\n     * @author ${functionAuthor}\n     * @since  ${functionVersion}\n     */\n    @RestController\n    @RequestMapping(\"${moduleName}/${childclassName}\")\n    @Api(tags=\"${table.comments}\")\n    public class ${childClassName}Controller {\n        @Autowired\n        private ${childClassName}Service ${childclassName}Service;\n\n        @GetMapping(\"page\")\n        @ApiOperation(\"分页\")\n        @ApiImplicitParams({\n            @ApiImplicitParam(name = Constant.PAGE, value = \"当前页码，从1开始\", paramType = \"query\", required = true, dataType=\"int\") ,\n            @ApiImplicitParam(name = Constant.LIMIT, value = \"每页显示记录数\", paramType = \"query\",required = true, dataType=\"int\") ,\n            @ApiImplicitParam(name = Constant.ORDER_FIELD, value = \"排序字段\", paramType = \"query\", dataType=\"String\") ,\n            @ApiImplicitParam(name = Constant.ORDER, value = \"排序方式，可选值(asc、desc)\", paramType = \"query\", dataType=\"String\")\n        })\n        public Result<PageData<${childClassName}DTO>> page(@ApiIgnore @RequestParam Map<String, Object> params){\n            PageData<${childClassName}DTO> page = ${childclassName}Service.page(params);\n            return new Result<PageData<${childClassName}DTO>>().ok(page);\n        }\n\n        @GetMapping(\"{id}\")\n        @ApiOperation(\"信息\")\n        public Result<${childClassName}DTO> get(@PathVariable(\"id\") Long id){\n            ${childClassName}DTO data = ${childclassName}Service.get(id);\n            return new Result<${childClassName}DTO>().ok(data);\n        }\n\n        @GetMapping(\"list\")\n        @ApiOperation(\"列表\")\n        public Result<List<${childClassName}DTO>> list(@ApiIgnore @RequestParam Map<String, Object> params) {\n            List<${childClassName}DTO> list = ${childclassName}Service.list(params);\n            return new Result<List<${childClassName}DTO>>().ok(list);\n        }\n\n        @PostMapping\n        @ApiOperation(\"保存\")\n        @LogOperation(\"保存\")\n        public Result save(@RequestBody ${childClassName}DTO dto){\n            //效验数据\n            ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class);\n            ${childclassName}Service.save(dto);\n            return new Result().ok(dto);\n        }\n\n        @PutMapping\n        @ApiOperation(\"修改\")\n        @LogOperation(\"修改\")\n        public Result update(@RequestBody ${childClassName}DTO dto){\n            //效验数据\n            ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class);\n            ${childclassName}Service.update(dto);\n            return new Result().ok(dto);\n        }\n\n        @DeleteMapping\n        @ApiOperation(\"删除\")\n        @LogOperation(\"删除\")\n        public Result delete(@RequestBody Long[] ids){\n            //效验数据\n            AssertUtils.isArrayEmpty(ids, \"id\");\n            ${childclassName}Service.delete(ids);\n            return new Result();\n        }\n\n    }', '', 'admin', '2019-10-25 10:21:37', 'admin', '2019-11-21 16:10:12');
INSERT INTO `gen_table_template` VALUES (1187555068153483265, 'parent-child-service', '主子表(一体事务)-子表业务逻辑接口', 'javafile/web/common/child-service.xml', 'java', 'src/main/java/${packageName}/modules/${moduleName}/service', '${childClassName}Service.java', '/**\n * Copyright &copy; 2013-2019 山东易科德软件有限公司\n * All rights reserved.\n */\npackage ${packageName}.modules.${moduleName}.service;\nimport java.util.List;\nimport ${packageName}.core.service.CrudService;\nimport ${packageName}.modules.${moduleName}.dto.${childClassName}DTO;\nimport ${packageName}.modules.${moduleName}.entity.${childClassName}Entity;\n\n\n/**\n * ${functionName}Service\n * @author ${functionAuthor}\n * @version ${functionVersion}\n */\npublic interface ${childClassName}Service extends CrudService<${childClassName}Entity, ${childClassName}DTO> {\n     /**\n     * @Description: 根据主表ID 删除子表相关数据\n     * @Param: [ids]\n     * @return: void\n     * @Author: ${functionAuthor}\n     * @Date: ${functionVersion}\n     */\n     public void deltByParentIds(Long[] ids);\n}\n', '', 'admin', '2019-10-25 10:22:47', 'admin', '2019-11-21 16:06:15');
INSERT INTO `gen_table_template` VALUES (1187555236714172418, 'parent-child-serviceImpl', '主子表(一体事务)-子表业务逻辑实现', 'javafile/web/common/child-serviceImpl.xml', 'java', 'src/main/java/${packageName}/modules/${moduleName}/service/impl', '${childClassName}ServiceImpl.java', '/**\n * Copyright &copy; 2013-2019 山东易科德软件有限公司\n * All rights reserved.\n */\npackage ${packageName}.modules.${moduleName}.service.impl;\n\nimport com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;\nimport ${packageName}.core.service.impl.CrudServiceImpl;\nimport ${packageName}.modules.${moduleName}.dao.${childClassName}Dao;\nimport ${packageName}.modules.${moduleName}.dto.${childClassName}DTO;\nimport ${packageName}.modules.${moduleName}.entity.${childClassName}Entity;\nimport ${packageName}.modules.${moduleName}.service.${childClassName}Service;\nimport org.apache.commons.lang3.StringUtils;\nimport org.springframework.stereotype.Service;\n\nimport java.util.Map;\n\n\n/**\n * ${functionName}ServiceImpl\n * @author ${functionAuthor}\n * @version ${functionVersion}\n */\n@Service\npublic class ${childClassName}ServiceImpl extends CrudServiceImpl<${childClassName}Dao, ${childClassName}Entity, ${childClassName}DTO> implements ${childClassName}Service {\n\n    @Override\n    public QueryWrapper<${childClassName}Entity> getWrapper(Map<String, Object> params){\n\n        QueryWrapper<${childClassName}Entity> wrapper = new QueryWrapper<>();\n        String id = (String)params.get(\"id\");\n        wrapper.eq(StringUtils.isNotBlank(id), \"id\", id);\n        <#list childFileds.columnList as c>\n        	<#if c.isQuery ==\'1\' && c.isPk == \'0\' >\n			Object ${c.simpleJavaField}=params.get(\"${c.simpleJavaField}\");\n			if(${c.simpleJavaField}!=null){\n				wrapper.${c.queryType}(StringUtils.isNotBlank(${c.simpleJavaField}.toString()), \"${c.columnName}\", ${c.simpleJavaField}.toString());\n			}\n        	</#if>\n        </#list>\n\n        return wrapper;\n    }\n\n    /**\n     * @Description: 根据主表ID 删除子表相关数据\n     * @Param: [ids]\n     * @return: void\n     * @Author: ${functionAuthor}\n     * @Date: ${functionVersion}\n     */\n    @Override\n    public void deltByParentIds(Long[] ids) {\n        QueryWrapper<${childClassName}Entity> wrapper = new QueryWrapper<>();\n        wrapper.in(\"parent_id\", ids);\n        this.baseDao.delete(wrapper);\n    }\n\n}', '', 'admin', '2019-10-25 10:23:27', 'admin', '2019-11-21 15:44:15');
INSERT INTO `gen_table_template` VALUES (1187558260744441857, 'parent-parent-dto', '主子表(一体事务)-主表页面实体类', 'javafile/web/common/parent-dto.xml', 'java', 'src/main/java/${packageName}/modules/${moduleName}/dto', '${parentClassName}DTO.java', '/**\n * Copyright &copy; 2013-2019 山东易科德软件有限公司\n * All rights reserved.\n */\npackage ${packageName}.modules.${moduleName}.dto;\n\nimport io.swagger.annotations.ApiModel;\nimport io.swagger.annotations.ApiModelProperty;\nimport lombok.Data;\nimport ${packageName}.modules.${moduleName}.dto.${childClassName}DTO ;\n\n\nimport java.io.Serializable;\n\nimport java.util.List;\n<#list importList as i>\nimport ${i};\n</#list>\n\n/**\n * ${table.tableNameAndComments}\n * ${functionName}DTO\n * @author ${functionAuthor}\n * @since  ${functionVersion}\n */\n@Data\n@ApiModel(value = \"${table.comments}\")\npublic class ${parentClassName}DTO implements Serializable {\n	private static final long serialVersionUID = 1L;\n\n    <#-- 生成非主键字段属性 -->\n	<#list columnList as c>\n    /**\n    * <#if c.comments??>${c.comments}</#if>\n    */\n    @ApiModelProperty(value = \"${c.comments}\")\n    private ${c.simpleJavaType} ${c.simpleJavaField};\n	</#list>\n	/**\n     * 子表信息集合\n     */\n    @ApiModelProperty(value = \"子表信息集合\")\n    private List<${childClassName}DTO> children;\n\n    /**\n     * 删除子表信息集合\n     */\n    @ApiModelProperty(value = \"删除子表信息集合\")\n    private List<${childClassName}DTO> deltList;\n}', '', 'admin', '2019-10-25 10:35:28', 'admin', '2019-11-21 15:36:25');
INSERT INTO `gen_table_template` VALUES (1187558421222707202, 'parent-parent-serviceImpl', '主子表(一体事务)-主表业务逻辑实现', 'javafile/web/common/parent-serviceImpl.xml', 'java', 'src/main/java/${packageName}/modules/${moduleName}/service/impl', '${parentClassName}ServiceImpl.java', '/**\n * Copyright &copy; 2013-2019 山东易科德软件有限公司\n * All rights reserved.\n */\npackage ${packageName}.modules.${moduleName}.service.impl;\nimport com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;\nimport ${packageName}.core.service.impl.CrudServiceImpl;\nimport ${packageName}.modules.${moduleName}.dao.${parentClassName}Dao;\nimport ${packageName}.modules.${moduleName}.dto.${parentClassName}DTO;\nimport ${packageName}.modules.${moduleName}.entity.${parentClassName}Entity;\nimport ${packageName}.modules.${moduleName}.service.${parentClassName}Service;\nimport ${packageName}.modules.${moduleName}.dto.${childClassName}DTO;\nimport ${packageName}.modules.${moduleName}.service.${childClassName}Service;\nimport org.apache.commons.lang3.StringUtils;\nimport org.springframework.stereotype.Service;\nimport org.springframework.transaction.annotation.Transactional;\nimport javax.annotation.Resource;\nimport java.util.Map;\n\n\n/**\n * ${functionName}ServiceImpl\n * @author ${functionAuthor}\n * @version ${functionVersion}\n */\n@Service\npublic class ${parentClassName}ServiceImpl extends CrudServiceImpl<${parentClassName}Dao, ${parentClassName}Entity, ${parentClassName}DTO> implements ${parentClassName}Service {\n    @Resource\n    ${childClassName}Service ${childclassName}Service;\n\n    @Override\n    public QueryWrapper<${parentClassName}Entity> getWrapper(Map<String, Object> params){\n\n        QueryWrapper<${parentClassName}Entity> wrapper = new QueryWrapper<>();\n        String id = (String)params.get(\"id\");\n        wrapper.eq(StringUtils.isNotBlank(id), \"id\", id);\n        <#list columnList as c>\n        	<#if c.isQuery ==\'1\' && c.isPk == \'0\' >\n			Object ${c.simpleJavaField}=params.get(\"${c.simpleJavaField}\");\n			if(${c.simpleJavaField}!=null){\n				wrapper.${c.queryType}(StringUtils.isNotBlank(${c.simpleJavaField}.toString()), \"${c.columnName}\", ${c.simpleJavaField}.toString());\n			}\n        	</#if>\n        </#list>\n\n        return wrapper;\n    }\n\n    /**\n     * @Description: 重写主表保存\n     * @Param: [ids]\n     * @return: void\n     * @Author: ${functionAuthor}\n     * @Date: ${functionVersion}\n     */\n    @Override\n    @Transactional\n    public void save(${parentClassName}DTO dto) {\n        super.save(dto);\n        for (${childClassName}DTO child : dto.getChildren()) {\n            child.setParentId(dto.getId());\n            ${childclassName}Service.save(child);\n        }\n    }\n    /**\n     * @Description: 重写主表修改\n     * @Param: [ids]\n     * @return: void\n     * @Author: ${functionAuthor}\n     * @Date: ${functionVersion}\n     */\n    @Override\n    @Transactional\n    public void update(${parentClassName}DTO dto) {\n        super.update(dto);\n        //先 删除子表\n        for (${childClassName}DTO child : dto.getDeltList()) {\n            ${childclassName}Service.deleteById(child.getId());\n        }\n        //二 新增子表\n        for (${childClassName}DTO child : dto.getChildren()) {\n            if (child.getId() == null) {\n                child.setParentId(dto.getId());\n                ${childclassName}Service.save(child);\n            }\n        }\n        //三 修改子表\n        for (${childClassName}DTO child : dto.getChildren()) {\n            if (child.getId() != null) {\n                ${childclassName}Service.update(child);\n            }\n        }\n    }\n\n    /**\n     * @Description: 重写主表删除\n     * @Param: [ids]\n     * @return: void\n     * @Author: ${functionAuthor}\n     * @Date: ${functionVersion}\n     */\n    @Override\n    @Transactional\n    public void delete(Long[] ids) {\n        super.delete(ids);\n        ${childclassName}Service.deltByParentIds(ids);\n    }\n\n}', '', 'admin', '2019-10-25 10:36:06', 'admin', '2019-11-21 17:04:26');
INSERT INTO `gen_table_template` VALUES (1239490194479017985, 'tree-tab-index', '树表-标签页-列表', '', 'webui', 'src/views/modules/${moduleName}/', '${className}.vue', '<template>\n  <el-card shadow=\"never\">\n    <#if table.languageFlag>\n    <code-snippet id=\"ui_tree_query_form_i18n\" code=\"ui_tree_query_form_i18n\" />\n    <code-snippet id=\"tree_tablelist_i18n\" code=\"tree_tablelist_i18n\" />\n    <#else>\n    <code-snippet id=\"ui_tree_query_form\" code=\"ui_tree_query_form\" />\n    <code-snippet id=\"tree_tablelist\" code=\"tree_tablelist\" />\n    </#if>\n   </el-card>\n</template>\n<script>\nimport mixinViewModule from \'@/mixins/view-module\'\nexport default {\n  mixins: [mixinViewModule],\n  data () {\n	return {\n	  searchShow: true,\n	  mixinViewModuleOptions: {\n		getDataListURL: \'/${moduleName}/${className}/list\',\n		getDataListIsPage: false,\n		deleteURL: \'/${moduleName}/${className}\',\n		deleteIsBatch: true,\n		exportURL: \'/${moduleName}/${className}/export\',\n    getTreeDataListURL: \'/${moduleName}/${className}/list\',\n    treeType: true\n	  },\n	  dataForm: {\n		<#list queryColList as c>\n			 ${c.javaField}:\'\'<#if c_has_next>,</#if>\n		</#list>\n	  }\n	}\n  },\n  methods: {\n    // 新增 / 修改\n    addOrUpdateHandle (row) {\n      this.openTab(row, null)\n    },\n   // 新增下级\n    addChild (row) {\n      this.openTab(null, row.id)\n    },\n    // 打开窗口\n    openTab (row, pid) {\n      let title = \'新增\'\n      let id\n      if (row && row.id) {\n        id = row.id\n        title = \'修改\'\n      }\n      // 打开路由\n      var router = {\n        name: \'${moduleName}-${className}-editForm\',\n        id: id,\n        menuId: this.$route.meta.menuId,\n        oldName: \'${moduleName}-${className}\',\n        path: \'${moduleName}/${className}-editForm\',\n        title: title\n      }\n      var params = {\n        timestamp: this.$xeutils.timestamp(),\n        id: id,\n        pid: pid\n      }\n      this.$options.methods.openNewTab(this.$router, router, params)\n    }\n  }\n}\n</script>\n', '', 'admin', '2020-03-16 17:54:26', 'admin', '2020-04-08 13:37:59');
INSERT INTO `gen_table_template` VALUES (1239492488641671169, 'tree-tab-add', '树表-标签页-数据维护', '', 'webui', 'src/views/modules/${moduleName}/', '${className}-editForm.vue', '<template>\n    <el-card v-loading=\"loading\">\n     <div slot=\"header\" class=\"clearfix\">\n        <el-button size=\"small\" type=\"primary\" @click=\"dataFormSubmitHandle()\">{{ $t(\'save\') }}</el-button>\n        <el-button size=\"small\" @click=\"closeTab()\">{{ $t(\'close\') }}</el-button>\n      </div>\n      <el-col :span=\"24\">\n       <#if table.languageFlag>\n        <code-snippet id=\"edit_form_i18n\" code=\"edit_form_i18n\" />\n       <#else>\n        <code-snippet id=\"edit_form\" code=\"edit_form\" />\n       </#if>\n      </el-col>\n   </el-card>\n</template>\n\n<script>\nimport debounce from \'lodash/debounce\'\nimport ElTreeSelect from \'@/components/uni-tree-select\'\nimport mainContent from \'@/views/main-content\'\nimport { treeDataTranslate } from \'@/utils/index\'\n<code-snippet id=\"edit_form_imp\" code=\"edit_form_imp\" />\nvar content = mainContent\nexport default {\n  data () {\n    return {\n      loading: false,\n      visible: false,\n      parentTreeData: [],\n      dataForm: {\n        <#list columnList as c>\n          <#if c.javaField ==\'id\' >\n           id: this.$route.params.id,\n          <#elseif c.javaField != \'status\' && c.javaField != \'creator\' && c.javaField != \'createDate\' && c.javaField != \'updater\' && c.javaField != \'updateDate\'  && c.javaField != \'tenantId\' >\n           ${c.javaField}:\'\'<#if c_has_next>,</#if>\n          </#if>\n        </#list>\n      }\n    }\n  },\n  <code-snippet id=\"edit_form_computed\" code=\"edit_form_computed\" />\n  components: { ElTreeSelect },\n created () {\n    // 通过路由参数pid, 控制列表请求操作\n this.$nextTick(() => {\n    this.$refs[\'dataForm\'].resetFields()\n    // 获取父级列表\n    this.dataForm.pid = this.$route.params.pid\n    if (this.$route.params.id) {\n      this.dataForm.id = this.$route.params.id\n      this.loading = true\n      this.getInfo()\n      this.getTreeCompList(this.dataForm.id)\n    } else {\n      this.getTreeCompList()\n    }\n})\n  },\n  methods: {\n   // 获取父级树组件\n    getTreeCompList (id) {\n      this.$http.get(\'/${moduleName}/${className}/list\',\n        {\n          params: {\n            id_ne: id,\n            pid_ne: id\n          }\n        }\n      ).then(({ data: res }) => {\n        if (res.code !== 0) {\n          return false\n        }\n        console.log(this.dataForm.pid)\n        this.parentTreeData = treeDataTranslate(res.data, \'id\', \'pid\')\n      }).catch(err => {\n        return this.$message.error(err)\n      })\n    },\n    // 获取信息\n   <code-snippet id=\"edit_form_getinfo\" code=\"edit_form_getinfo\" />\n     // 关闭 tab\n    closeTab () {\n      content.methods.tabRemoveHandle(this.$route.name)\n    },\n    // 表单提交\n    dataFormSubmitHandle: debounce(function () {\n      this.$refs[\'dataForm\'].validate((valid) => {\n        if (!valid) {\n          return false\n        }\n        this.loading = true\n        this.$http[!this.dataForm.${pkField} ? \'post\' : \'put\'](\'/${moduleName}/${className}/\', this.dataForm).then(({ data: res }) => {\n         this.loading = false\n          if (res.code !== 0) {\n            return this.$message.error(res.msg)\n          }\n          this.$message({\n            message: this.$t(\'prompt.success\'),\n            type: \'success\',\n            duration: 500,\n            onClose: () => {\n              this.closeTab()\n            }\n          })\n        }).catch(() => {})\n      })\n    }, 1000, { \'leading\': true, \'trailing\': false })\n  }\n}\n</script>\n', '', 'admin', '2020-03-16 18:03:33', 'admin', '2020-04-08 15:08:27');
COMMIT;

-- ----------------------------
-- Table structure for gen_table_template_type
-- ----------------------------
DROP TABLE IF EXISTS `gen_table_template_type`;
CREATE TABLE `gen_table_template_type` (
  `id` bigint(20) NOT NULL COMMENT '主键',
  `template_code` varchar(64) NOT NULL COMMENT '模板编码',
  `template_name` varchar(256) NOT NULL COMMENT '模板描述',
  `type_code` varchar(64) NOT NULL COMMENT '分类编码',
  `type_name` varchar(256) NOT NULL COMMENT '分类描述',
  `remark` varchar(256) DEFAULT NULL COMMENT '备注信息',
  `creator` varchar(64) DEFAULT NULL COMMENT '创建者',
  `create_date` datetime NOT NULL COMMENT '创建时间',
  `updater` varchar(64) DEFAULT NULL COMMENT '更新者',
  `update_date` datetime NOT NULL COMMENT '更新时间',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE KEY `uq_source_table_name` (`template_code`,`type_code`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='模板分类维护';

-- ----------------------------
-- Records of gen_table_template_type
-- ----------------------------
BEGIN;
INSERT INTO `gen_table_template_type` VALUES (1245657626482577410, 'service', '单体通用-业务逻辑接口', 'single-crud-tree-tab', '单体应用-树表操作(tab页)', NULL, 'admin', '2020-04-02 18:21:36', 'admin', '2020-04-02 18:21:36');
INSERT INTO `gen_table_template_type` VALUES (1245657626767790082, 'execl', '单体通用-导入导出类', 'single-crud-tree-tab', '单体应用-树表操作(tab页)', NULL, 'admin', '2020-04-02 18:21:36', 'admin', '2020-04-02 18:21:36');
INSERT INTO `gen_table_template_type` VALUES (1245657627078168578, 'controller', '单体通用-接口访问', 'single-crud-tree-tab', '单体应用-树表操作(tab页)', NULL, 'admin', '2020-04-02 18:21:36', 'admin', '2020-04-02 18:21:36');
INSERT INTO `gen_table_template_type` VALUES (1245657627342409729, 'entity', '单体通用-数据实体类', 'single-crud-tree-tab', '单体应用-树表操作(tab页)', NULL, 'admin', '2020-04-02 18:21:36', 'admin', '2020-04-02 18:21:36');
INSERT INTO `gen_table_template_type` VALUES (1245657627518570497, 'mapper', '单体通用-数据库操作映射', 'single-crud-tree-tab', '单体应用-树表操作(tab页)', NULL, 'admin', '2020-04-02 18:21:36', 'admin', '2020-04-02 18:21:36');
INSERT INTO `gen_table_template_type` VALUES (1245657627694731266, 'dao', '单体通用-数据操作', 'single-crud-tree-tab', '单体应用-树表操作(tab页)', NULL, 'admin', '2020-04-02 18:21:36', 'admin', '2020-04-02 18:21:36');
INSERT INTO `gen_table_template_type` VALUES (1245657627958972418, 'dto', '单体通用-页面实体类', 'single-crud-tree-tab', '单体应用-树表操作(tab页)', NULL, 'admin', '2020-04-02 18:21:36', 'admin', '2020-04-02 18:21:36');
INSERT INTO `gen_table_template_type` VALUES (1245657628210630657, 'tree-serviceImpl', '树表-业务逻辑实现', 'single-crud-tree-tab', '单体应用-树表操作(tab页)', NULL, 'admin', '2020-04-02 18:21:36', 'admin', '2020-04-02 18:21:36');
INSERT INTO `gen_table_template_type` VALUES (1245657628466483202, 'tree-tab-index', '树表-标签页-列表', 'single-crud-tree-tab', '单体应用-树表操作(tab页)', NULL, 'admin', '2020-04-02 18:21:36', 'admin', '2020-04-02 18:21:36');
INSERT INTO `gen_table_template_type` VALUES (1245657628546174977, 'tree-tab-add', '树表-标签页-数据维护', 'single-crud-tree-tab', '单体应用-树表操作(tab页)', NULL, 'admin', '2020-04-02 18:21:37', 'admin', '2020-04-02 18:21:37');
INSERT INTO `gen_table_template_type` VALUES (1245657842870915074, 'parent-parent-serviceImpl', '主子表(一体事务)-主表业务逻辑实现', 'parent-edittable', '单体应用-父子表模版(可编辑Table)', NULL, 'admin', '2020-04-02 18:22:28', 'admin', '2020-04-02 18:22:28');
INSERT INTO `gen_table_template_type` VALUES (1245657843084824578, 'parent-parent-dto', '主子表(一体事务)-主表页面实体类', 'parent-edittable', '单体应用-父子表模版(可编辑Table)', NULL, 'admin', '2020-04-02 18:22:28', 'admin', '2020-04-02 18:22:28');
INSERT INTO `gen_table_template_type` VALUES (1245657843210653697, 'parent-child-serviceImpl', '主子表(一体事务)-子表业务逻辑实现', 'parent-edittable', '单体应用-父子表模版(可编辑Table)', NULL, 'admin', '2020-04-02 18:22:28', 'admin', '2020-04-02 18:22:28');
INSERT INTO `gen_table_template_type` VALUES (1245657843344871426, 'parent-child-service', '主子表(一体事务)-子表业务逻辑接口', 'parent-edittable', '单体应用-父子表模版(可编辑Table)', NULL, 'admin', '2020-04-02 18:22:28', 'admin', '2020-04-02 18:22:28');
INSERT INTO `gen_table_template_type` VALUES (1245657843479089153, 'parent-child-controller', '主子表(一体事务)-子表接口访问', 'parent-edittable', '单体应用-父子表模版(可编辑Table)', NULL, 'admin', '2020-04-02 18:22:28', 'admin', '2020-04-02 18:22:28');
INSERT INTO `gen_table_template_type` VALUES (1245657843617501185, 'parentEditTable-parent-index', '主子表(可编辑table)-主表列表页', 'parent-edittable', '单体应用-父子表模版(可编辑Table)', NULL, 'admin', '2020-04-02 18:22:28', 'admin', '2020-04-02 18:22:28');
INSERT INTO `gen_table_template_type` VALUES (1245657843755913218, 'parentEditTable-parent-editForm', '主子表(可编辑table)-主表编辑表单', 'parent-edittable', '单体应用-父子表模版(可编辑Table)', NULL, 'admin', '2020-04-02 18:22:28', 'admin', '2020-04-02 18:22:28');
INSERT INTO `gen_table_template_type` VALUES (1245657843890130945, 'parentEditTable-child-index', '主子表(可编辑table)-子表可编辑table', 'parent-edittable', '单体应用-父子表模版(可编辑Table)', NULL, 'admin', '2020-04-02 18:22:28', 'admin', '2020-04-02 18:22:28');
INSERT INTO `gen_table_template_type` VALUES (1245658547501404161, 'bpm-serviceImpl', '单体bpm-业务逻辑实现', 'single-curd-bpm', '单体应用-工作流表单', NULL, 'admin', '2020-04-02 18:25:16', 'admin', '2020-04-02 18:25:16');
INSERT INTO `gen_table_template_type` VALUES (1245658547639816194, 'bpm-service', '单体bpm-业务逻辑接口', 'single-curd-bpm', '单体应用-工作流表单', NULL, 'admin', '2020-04-02 18:25:16', 'admin', '2020-04-02 18:25:16');
INSERT INTO `gen_table_template_type` VALUES (1245658547765645313, 'bpm-controller', '单体bpm-接口访问', 'single-curd-bpm', '单体应用-工作流表单', NULL, 'admin', '2020-04-02 18:25:16', 'admin', '2020-04-02 18:25:16');
INSERT INTO `gen_table_template_type` VALUES (1245658547929223169, 'bpm-form', '单体bpm-表单', 'single-curd-bpm', '单体应用-工作流表单', NULL, 'admin', '2020-04-02 18:25:16', 'admin', '2020-04-02 18:25:16');
INSERT INTO `gen_table_template_type` VALUES (1245658548063440898, 'bpm-dto', '单体bpm-页面实体类', 'single-curd-bpm', '单体应用-工作流表单', NULL, 'admin', '2020-04-02 18:25:16', 'admin', '2020-04-02 18:25:16');
INSERT INTO `gen_table_template_type` VALUES (1245658548201852930, 'entity', '单体通用-数据实体类', 'single-curd-bpm', '单体应用-工作流表单', NULL, 'admin', '2020-04-02 18:25:16', 'admin', '2020-04-02 18:25:16');
INSERT INTO `gen_table_template_type` VALUES (1245658548319293442, 'mapper', '单体通用-数据库操作映射', 'single-curd-bpm', '单体应用-工作流表单', NULL, 'admin', '2020-04-02 18:25:16', 'admin', '2020-04-02 18:25:16');
INSERT INTO `gen_table_template_type` VALUES (1245658548453511169, 'dao', '单体通用-数据操作', 'single-curd-bpm', '单体应用-工作流表单', NULL, 'admin', '2020-04-02 18:25:16', 'admin', '2020-04-02 18:25:16');
INSERT INTO `gen_table_template_type` VALUES (1245658783292592130, 'service', '单体通用-业务逻辑接口', 'single-crud-tree', '单体应用-树表操作(对话框)', NULL, 'admin', '2020-04-02 18:26:12', 'admin', '2020-04-02 18:26:12');
INSERT INTO `gen_table_template_type` VALUES (1245658783468752898, 'execl', '单体通用-导入导出类', 'single-crud-tree', '单体应用-树表操作(对话框)', NULL, 'admin', '2020-04-02 18:26:12', 'admin', '2020-04-02 18:26:12');
INSERT INTO `gen_table_template_type` VALUES (1245658783644913665, 'controller', '单体通用-接口访问', 'single-crud-tree', '单体应用-树表操作(对话框)', NULL, 'admin', '2020-04-02 18:26:12', 'admin', '2020-04-02 18:26:12');
INSERT INTO `gen_table_template_type` VALUES (1245658783804297217, 'entity', '单体通用-数据实体类', 'single-crud-tree', '单体应用-树表操作(对话框)', NULL, 'admin', '2020-04-02 18:26:12', 'admin', '2020-04-02 18:26:12');
INSERT INTO `gen_table_template_type` VALUES (1245658783959486465, 'mapper', '单体通用-数据库操作映射', 'single-crud-tree', '单体应用-树表操作(对话框)', NULL, 'admin', '2020-04-02 18:26:12', 'admin', '2020-04-02 18:26:12');
INSERT INTO `gen_table_template_type` VALUES (1245658784118870017, 'dao', '单体通用-数据操作', 'single-crud-tree', '单体应用-树表操作(对话框)', NULL, 'admin', '2020-04-02 18:26:12', 'admin', '2020-04-02 18:26:12');
INSERT INTO `gen_table_template_type` VALUES (1245658784295030785, 'dto', '单体通用-页面实体类', 'single-crud-tree', '单体应用-树表操作(对话框)', NULL, 'admin', '2020-04-02 18:26:12', 'admin', '2020-04-02 18:26:12');
INSERT INTO `gen_table_template_type` VALUES (1245658784454414338, 'tree-serviceImpl', '树表-业务逻辑实现', 'single-crud-tree', '单体应用-树表操作(对话框)', NULL, 'admin', '2020-04-02 18:26:12', 'admin', '2020-04-02 18:26:12');
INSERT INTO `gen_table_template_type` VALUES (1245658879476371457, 'tree-index', '树表-列表页', 'single-crud-tree', '单体应用-树表操作(对话框)', NULL, 'admin', '2020-04-02 18:26:35', 'admin', '2020-04-02 18:26:35');
INSERT INTO `gen_table_template_type` VALUES (1245658879673503745, 'tree-add', '树表-数据维护', 'single-crud-tree', '单体应用-树表操作(对话框)', NULL, 'admin', '2020-04-02 18:26:35', 'admin', '2020-04-02 18:26:35');
INSERT INTO `gen_table_template_type` VALUES (1245659104802770945, 'serviceImpl', '单体通用-业务逻辑实现', 'single-crud-tab', '单体应用-单表操作(Tab页)', NULL, 'admin', '2020-04-02 18:27:28', 'admin', '2020-04-02 18:27:28');
INSERT INTO `gen_table_template_type` VALUES (1245659104970543105, 'service', '单体通用-业务逻辑接口', 'single-crud-tab', '单体应用-单表操作(Tab页)', NULL, 'admin', '2020-04-02 18:27:29', 'admin', '2020-04-02 18:27:29');
INSERT INTO `gen_table_template_type` VALUES (1245659105138315265, 'execl', '单体通用-导入导出类', 'single-crud-tab', '单体应用-单表操作(Tab页)', NULL, 'admin', '2020-04-02 18:27:29', 'admin', '2020-04-02 18:27:29');
INSERT INTO `gen_table_template_type` VALUES (1245659105297698818, 'controller', '单体通用-接口访问', 'single-crud-tab', '单体应用-单表操作(Tab页)', NULL, 'admin', '2020-04-02 18:27:29', 'admin', '2020-04-02 18:27:29');
INSERT INTO `gen_table_template_type` VALUES (1245659105457082370, 'entity', '单体通用-数据实体类', 'single-crud-tab', '单体应用-单表操作(Tab页)', NULL, 'admin', '2020-04-02 18:27:29', 'admin', '2020-04-02 18:27:29');
INSERT INTO `gen_table_template_type` VALUES (1245659105624854530, 'mapper', '单体通用-数据库操作映射', 'single-crud-tab', '单体应用-单表操作(Tab页)', NULL, 'admin', '2020-04-02 18:27:29', 'admin', '2020-04-02 18:27:29');
INSERT INTO `gen_table_template_type` VALUES (1245659105855541250, 'dao', '单体通用-数据操作', 'single-crud-tab', '单体应用-单表操作(Tab页)', NULL, 'admin', '2020-04-02 18:27:29', 'admin', '2020-04-02 18:27:29');
INSERT INTO `gen_table_template_type` VALUES (1245659106040090625, 'dto', '单体通用-页面实体类', 'single-crud-tab', '单体应用-单表操作(Tab页)', NULL, 'admin', '2020-04-02 18:27:29', 'admin', '2020-04-02 18:27:29');
INSERT INTO `gen_table_template_type` VALUES (1245659106300137473, 'tab-index', '单表标签页-列表页', 'single-crud-tab', '单体应用-单表操作(Tab页)', NULL, 'admin', '2020-04-02 18:27:29', 'admin', '2020-04-02 18:27:29');
INSERT INTO `gen_table_template_type` VALUES (1245659106463715329, 'tabs-edit', '单表标签页-编辑页', 'single-crud-tab', '单体应用-单表操作(Tab页)', NULL, 'admin', '2020-04-02 18:27:29', 'admin', '2020-04-02 18:27:29');
INSERT INTO `gen_table_template_type` VALUES (1245659242975727618, 'serviceImpl', '单体通用-业务逻辑实现', 'single-crud-dialog', '单体应用-单表操作(对话框)', NULL, 'admin', '2020-04-02 18:28:01', 'admin', '2020-04-02 18:28:01');
INSERT INTO `gen_table_template_type` VALUES (1245659243118333954, 'service', '单体通用-业务逻辑接口', 'single-crud-dialog', '单体应用-单表操作(对话框)', NULL, 'admin', '2020-04-02 18:28:01', 'admin', '2020-04-02 18:28:01');
INSERT INTO `gen_table_template_type` VALUES (1245659243260940290, 'execl', '单体通用-导入导出类', 'single-crud-dialog', '单体应用-单表操作(对话框)', NULL, 'admin', '2020-04-02 18:28:01', 'admin', '2020-04-02 18:28:01');
INSERT INTO `gen_table_template_type` VALUES (1245659243403546625, 'controller', '单体通用-接口访问', 'single-crud-dialog', '单体应用-单表操作(对话框)', NULL, 'admin', '2020-04-02 18:28:02', 'admin', '2020-04-02 18:28:02');
INSERT INTO `gen_table_template_type` VALUES (1245659243546152961, 'entity', '单体通用-数据实体类', 'single-crud-dialog', '单体应用-单表操作(对话框)', NULL, 'admin', '2020-04-02 18:28:02', 'admin', '2020-04-02 18:28:02');
INSERT INTO `gen_table_template_type` VALUES (1245659243684564994, 'mapper', '单体通用-数据库操作映射', 'single-crud-dialog', '单体应用-单表操作(对话框)', NULL, 'admin', '2020-04-02 18:28:02', 'admin', '2020-04-02 18:28:02');
INSERT INTO `gen_table_template_type` VALUES (1245659243831365634, 'dao', '单体通用-数据操作', 'single-crud-dialog', '单体应用-单表操作(对话框)', NULL, 'admin', '2020-04-02 18:28:02', 'admin', '2020-04-02 18:28:02');
INSERT INTO `gen_table_template_type` VALUES (1245659243973971969, 'dto', '单体通用-页面实体类', 'single-crud-dialog', '单体应用-单表操作(对话框)', NULL, 'admin', '2020-04-02 18:28:02', 'admin', '2020-04-02 18:28:02');
INSERT INTO `gen_table_template_type` VALUES (1245659315121950722, 'index', '单表弹出框-列表', 'single-crud-dialog', '单体应用-单表操作(对话框)', NULL, 'admin', '2020-04-02 18:28:19', 'admin', '2020-04-02 18:28:19');
INSERT INTO `gen_table_template_type` VALUES (1245659315285528577, 'add', '单表弹出框-新增修改', 'single-crud-dialog', '单体应用-单表操作(对话框)', NULL, 'admin', '2020-04-02 18:28:19', 'admin', '2020-04-02 18:28:19');
INSERT INTO `gen_table_template_type` VALUES (1247454401535172610, 'i18n-txt', '国际化资源文件', 'single-crud-dialog', '单体应用-单表操作(对话框)', NULL, 'admin', '2020-04-07 17:21:21', 'admin', '2020-04-07 17:21:21');
INSERT INTO `gen_table_template_type` VALUES (1247454482661400577, 'i18n-txt', '国际化资源文件', 'single-crud-tab', '单体应用-单表操作(Tab页)', NULL, 'admin', '2020-04-07 17:21:40', 'admin', '2020-04-07 17:21:40');
INSERT INTO `gen_table_template_type` VALUES (1247454539926233090, 'i18n-txt', '国际化资源文件', 'single-crud-tree', '单体应用-树表操作(对话框)', NULL, 'admin', '2020-04-07 17:21:54', 'admin', '2020-04-07 17:21:54');
INSERT INTO `gen_table_template_type` VALUES (1247454634658783233, 'i18n-txt', '国际化资源文件', 'single-crud-tree-tab', '单体应用-树表操作(tab页)', NULL, 'admin', '2020-04-07 17:22:16', 'admin', '2020-04-07 17:22:16');
INSERT INTO `gen_table_template_type` VALUES (1247454687800614913, 'i18n-txt', '国际化资源文件', 'single-curd-bpm', '单体应用-工作流表单', NULL, 'admin', '2020-04-07 17:22:29', 'admin', '2020-04-07 17:22:29');
COMMIT;

-- ----------------------------
-- Table structure for gen_table_type
-- ----------------------------
DROP TABLE IF EXISTS `gen_table_type`;
CREATE TABLE `gen_table_type` (
  `id` bigint(20) NOT NULL COMMENT '主键',
  `tmp_code` varchar(100) DEFAULT NULL COMMENT '模板编码',
  `tmp_name` varchar(100) DEFAULT NULL COMMENT '模板名称',
  `tmp_type` varchar(100) DEFAULT NULL COMMENT '模板分类',
  `picture` varchar(100) DEFAULT NULL COMMENT '模板预览图片',
  `sorts` int(11) DEFAULT NULL COMMENT '排序',
  `remark` varchar(256) DEFAULT NULL COMMENT '备注信息',
  `creator` varchar(64) DEFAULT NULL COMMENT '创建者',
  `create_date` datetime NOT NULL COMMENT '创建时间',
  `updater` varchar(64) DEFAULT NULL COMMENT '更新者',
  `update_date` datetime NOT NULL COMMENT '更新时间',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='代码模板表';

-- ----------------------------
-- Records of gen_table_type
-- ----------------------------
BEGIN;
INSERT INTO `gen_table_type` VALUES (1245627245528096769, 'single-crud-dialog', '单体应用-单表操作(对话框)', 'single', ' http://kingkingdev.oss-cn-beijing.aliyuncs.com/A/202004/aadc35bf0d714231a67078b698fda944.png', 1, '', 'admin', '2020-04-02 16:20:53', 'admin', '2020-04-02 17:14:23');
INSERT INTO `gen_table_type` VALUES (1245641819899826177, 'single-crud-tab', '单体应用-单表操作(Tab页)', 'single', ' http://kingkingdev.oss-cn-beijing.aliyuncs.com/A/202004/aadc35bf0d714231a67078b698fda944.png', 2, '', 'admin', '2020-04-02 17:18:47', 'admin', '2020-04-02 18:19:54');
INSERT INTO `gen_table_type` VALUES (1245642645372407810, 'single-crud-tree', '单体应用-树表操作(对话框)', 'single', ' http://kingkingdev.oss-cn-beijing.aliyuncs.com/A/202004/aadc35bf0d714231a67078b698fda944.png', 3, '', 'admin', '2020-04-02 17:22:04', 'admin', '2020-04-02 18:20:00');
INSERT INTO `gen_table_type` VALUES (1245642779439140865, 'single-curd-bpm', '单体应用-工作流表单', 'single', ' http://kingkingdev.oss-cn-beijing.aliyuncs.com/A/202004/aadc35bf0d714231a67078b698fda944.png', 4, '', 'admin', '2020-04-02 17:22:36', 'admin', '2020-04-02 18:20:05');
INSERT INTO `gen_table_type` VALUES (1245642886830100481, 'parent-edittable', '单体应用-父子表模版(可编辑Table)', 'parent', ' http://kingkingdev.oss-cn-beijing.aliyuncs.com/A/202004/aadc35bf0d714231a67078b698fda944.png', 5, '', 'admin', '2020-04-02 17:23:02', 'admin', '2020-04-02 18:20:12');
INSERT INTO `gen_table_type` VALUES (1245642978840547330, 'single-crud-tree-tab', '单体应用-树表操作(tab页)', 'single', ' http://kingkingdev.oss-cn-beijing.aliyuncs.com/A/202004/aadc35bf0d714231a67078b698fda944.png', 6, '', 'admin', '2020-04-02 17:23:24', 'admin', '2020-04-02 18:20:18');
COMMIT;

SET FOREIGN_KEY_CHECKS = 1;


-- 删除没有国际化的菜单
delete from sys_menu where id not in (select l.table_id from sys_language l);
-- 用户表加字段
ALTER table sys_user ADD user_type varchar(20);
ALTER table sys_user ADD ref_id bigint;